The Google search scraper for the Python programming language.
Project description
googlesearch.py
The Google search scraper for the Python programming language.
Installation instruction
- Python 3.6 or later is required.
- make sure the latest pip version is installed in your working environment.
If you meet the above requirements, run the following command given below to install the latest version of googlesearch.py:
pip install -U googlesearch.py
Get Started
Here is an example program.
import googlesearch_py
query = "what is programming language"
results = googlesearch_py.search(query)
print(results)
Program output:
If results are available for your search query, it will return a list containing dict objects; otherwise, it will return an empty list.
[
{
"url": "https://en.wikipedia.org/wiki/Programming_language",
"title": "Programming language - Wikipedia",
"description": "A programming language is a system of notation for writing computer programs. ... Most programming languages are text-based formal languages, but they may also be..."
}
]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
googlesearch.py-1.6.1.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for googlesearch.py-1.6.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a9165adcc4ba24ba55ab03d8b4eadffd3133c57d8ae7eb596938529fd99b3b0 |
|
MD5 | 83899cda47acc34ef9a8d60ef1eab59a |
|
BLAKE2b-256 | a8f6b0d3ae20950756b393b5c16a54163fa79e4229ebc258bc7996cfaefc9fb0 |