Skip to content
This repository has been archived by the owner on Aug 23, 2019. It is now read-only.

Commit

Permalink
Merge pull request #2 from akhil-reni/use_search_filters
Browse files Browse the repository at this point in the history
double URL encode the search query to search using filters
  • Loading branch information
s0md3v authored Aug 3, 2019
2 parents fc89870 + 6003780 commit 4187d2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion goop/goop.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def search(query, cookie, page=0, full=False):
"""
offset = page * 10
full = 1 if False else 0
escaped = url_encode('https://google.com/search?q=%s&start=%i&filter=%i' % (query, offset, full))
escaped = url_encode('https://google.com/search?q=%s&start=%i&filter=%i' % (url_encode(query), offset, full))
headers = {
'Host': 'developers.facebook.com',
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0',
Expand Down

0 comments on commit 4187d2d

Please sign in to comment.