diff --git a/oneforall/modules/search/github.py b/oneforall/modules/search/github.py index 0754b9b..62fae72 100644 --- a/oneforall/modules/search/github.py +++ b/oneforall/modules/search/github.py @@ -62,11 +62,10 @@ class Github(Search): return None if resp.status_code != 200: return None - match = re.search( - r'name="authenticity_token" value="(.*?)"', resp.text) + match = re.findall(r'name="authenticity_token" value="(.*?)"', resp.text) if not match: return None - return match.group(1) + return match[1] def search(self, full_search=False): """