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.0
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.0.tar.gz | 1.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| GoogleNews-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.7 kB
Release files / GoogleNews-1.1.0.tar.gz
| Download URL | GoogleNews-1.1.0.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
42874498d51e66d84637c6e34a4a113b957b22798070d597ce3f967168b918e7
|
|
BLAKE2b-256 checksum How to use checksums |
27a4f1704a14a000e60f8dd523a6d8f125efbbded9ed91f1c1608016e1247d59
|
| 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.0-py3-none-any.whl
| Download URL | GoogleNews-1.1.0-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
adeacda107ef697fe345c5865542ce783f00fa0b86807b05ed7b0b242f536613
|
|
BLAKE2b-256 checksum How to use checksums |
dc9229a4afd62b111eb854ea290754e4b7acf9b89061736fb726c96e154064dd
|
| 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
|