Skip to content

nabehide/WebSearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebSearch

This is a python package that gets search results from Bing, Google and Yahoo.

Requirements

  • Chrome
  • Selenium
  • BeautifulSoup4

Install

WebSearch

using pip

pip install WebSearch

from repository

git clone https://github.com/nabehide/WebSearch.git
cd WebSearch
python setup.py install

chromedriver

Download chromedriver from the official site.

Usage

example script

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

output

result = {
    number: {
        "title": "***",
        "url": "***",
    }
}

About

Scraping Bing, Google and Yahoo written in Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages