This is a python package that gets search results from Bing, Google and Yahoo.
- Chrome
- Selenium
- BeautifulSoup4
pip install WebSearch
git clone https://github.com/nabehide/WebSearch.git
cd WebSearch
python setup.py install
Download chromedriver from the official site.
import WebSearch
bing = WebSearch.Bing(driverPath="./chromedriver", headless=False)
# google = WebSearch.Google(driverPath="./chromedriver", headless=False)
# yahoo = WebSearch.Yahoo(driverPath="./chromedriver", headless=False)
bing.open() # open browser
result = bing.search(query="query")
bing.close() # close browser
result = {
number: {
"title": "***",
"url": "***",
}
}