Add WHOOGLE_RESULTS_PER_PAGE, allowing you to specify how much results you want per page. The default is 10.

This commit is contained in:
DUO Labs 2021-10-24 19:01:51 -04:00 committed by GitHub
parent 19e89de5d9
commit 8a0a4cbade
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ import os
from stem import Signal, SocketError
from stem.control import Controller
SEARCH_URL = 'https://www.google.com/search?gbv=1&q='
SEARCH_URL = 'https://www.google.com/search?gbv=1&num='+str(os.getenv('WHOOGLE_RESULTS_PER_PAGE',10))+'&q='
MAPS_URL = 'https://maps.google.com/maps'
AUTOCOMPLETE_URL = ('https://suggestqueries.google.com/'
'complete/search?client=toolbar&')