https://github.com/theprojectsx/googlesearch_advanced
Search for Google Results via Python (with Advanced Results)
https://github.com/theprojectsx/googlesearch_advanced
Last synced: 12 months ago
JSON representation
Search for Google Results via Python (with Advanced Results)
- Host: GitHub
- URL: https://github.com/theprojectsx/googlesearch_advanced
- Owner: TheProjectsX
- License: mit
- Created: 2024-04-04T17:20:32.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-04T21:37:42.000Z (about 2 years ago)
- Last Synced: 2025-02-13T00:45:40.676Z (over 1 year ago)
- Language: Python
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Google Search Advanced
Advanced version of Google Search
## Workflow:
- Parse google search HTML from Web
- Use bs4 to Parse the required Data
## Installations:
```bash script
pip install git+https://github.com/TheProjectsX/GoogleSearch_Advanced.git
```
## Uses:
```python
from googlesearch_advanced import search
searchResults = search("What is the latest version of Node JS?")
print(searchResults)
```
### Parameters:
There are several Parameters of the `search` function. You can View them by Hovering in the function from any advanced Code Editor.
## Result:
Returns a Dictionary.
- success: `True` | `False`
- error: If error Happens Error Message will be here
- answer_box: The Direct answers given by Google. If no answer found, Empty List will be returned.
- search_results: The actual search Results. Contains:
- title: Result Title
- url: Result URL
- description: Result Description
- related_searches: Searches Related to given Search Term
- peoples_also_ask: Similar Questions Peoples also Ask
## About:
This Module uses Multiple Parsing Queries to get the Result Accurately.
Uses Single Request Method to Get Results in One Request.
## Motivation:
Wanted to create a Google Searcher which can not only parse the search results, but also the Answer directly given by Google!