GoogleNews
Install
pip install 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.1.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.1.1.tar.gz | 1.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| GoogleNews-1.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.8 kB
Release files / GoogleNews-1.1.1.tar.gz
| Download URL | GoogleNews-1.1.1.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3ab397d4f735b8fdf641beb0636ae10c1192b17373f308bc5b869e6d72b22f33
|
|
BLAKE2b-256 checksum How to use checksums |
dba2525fb13543bdee3f5d7aa0ad6f411de20f5212ed10a1bf2f54676340cd28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
|
Release files / GoogleNews-1.1.1-py3-none-any.whl
| Download URL | GoogleNews-1.1.1-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
00b35b7e056374c928a0bcd4ca8bf130ca9315bbf88a153cdb3f771c99bbd9b7
|
|
BLAKE2b-256 checksum How to use checksums |
86d43643f479ae5a69925f81a697f712aefe2c816ab773c5357583a38228333b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
|