GoogleNews
Install
pip install GoogleNews
or
pip install --upgrade GoogleNews
Usage
- Initializing
from GoogleNews import GoogleNews
googlenews = GoogleNews()
- Search keyword Default return first page result
googlenews.search('APPL')
- Get other page of search results
googlenews.getpage(2)
- Get result
It will return a list,
[{'title': '...', 'media': '...', 'date': '...', 'desc': "...", 'link': '...', 'img': '...'}]
googlenews.result()
or just get a list of news titles
googlenews.gettext()
or just get a list of news links
googlenews.getlinks()
- Clear result list Clear result list before you get another search or page
googlenews.clear()
Metadata
Release files for GoogleNews 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| GoogleNews-1.2.1.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| GoogleNews-1.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.4 kB
Release files / GoogleNews-1.2.1.tar.gz
| Download URL | GoogleNews-1.2.1.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f3718c90991e9d4fe785cf8feea4346a4f46d16c4102004e7267a7c272d3dc2
|
|
BLAKE2b-256 checksum How to use checksums |
8e114c7d72ad0a098b30fdf124ff0a8ea7170ee4ac6feddaf26d533f060309b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|
Release files / GoogleNews-1.2.1-py3-none-any.whl
| Download URL | GoogleNews-1.2.1-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
84ab8daa4a92bb5291f306676992ca775d3e83ca45bfbc63aa4d30c929405767
|
|
BLAKE2b-256 checksum How to use checksums |
c27821bba5715403aa3ebdbc5876f8c0ec7977fd2b5f9dd4f857d8804def1152
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|