tasos-py / Search-Engines-Scraper

Search google, bing, yahoo, and other search engines with python
MIT License
513 stars 137 forks source link

How to use proxy server? #60

Closed matalab closed 10 months ago

matalab commented 1 year ago

Hello, can you please explain how to set and use a proxy?

tasos-py commented 1 year ago

Sure, it's easy. If you use the CLI script you can use the -proxy argument,

$ python search_engines_cli.py -e google -q "query" -proxy "http://127.0.0.1:8080"

and if you import it use the 1st argument in the constructor,

proxy = "http://127.0.0.1:8080"
engine = Google(proxy)
matalab commented 1 year ago

Thank you, both for the answer and for your great package! Do you have any recommendation on free and paid proxy lists/APIs?