googlenews

Script for GoogleNews

https://github.com/iceloof/googlenews

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.0%) to scientific vocabulary

Keywords

google googlenews news pypi pypi-package python python3
Last synced: 6 months ago · JSON representation

Repository

Script for GoogleNews

Basic Info
Statistics
  • Stars: 375
  • Watchers: 7
  • Forks: 99
  • Open Issues: 20
  • Releases: 28
Topics
google googlenews news pypi pypi-package python python3
Created about 7 years ago · Last pushed over 1 year ago
Metadata Files
Readme License

README.md

GoogleNews

Build Status Coverage Status PyPI PyPI - Downloads PyPI - Python Version PyPI - Wheel GitHub contributors GitHub issues GitHub Action GitHub

Install

pip install GoogleNews or pip install --upgrade GoogleNews

Usage

  • Initializing from GoogleNews import GoogleNews googlenews = GoogleNews()
  • Check version print(googlenews.getVersion())
  • Enable to throw exception googlenews.enableException(True)
  • Optional choose language googlenews = GoogleNews(lang='en') or googlenews = GoogleNews(lang='en', region='US')
  • Optional choose period (period and custom day range should not set together) googlenews = GoogleNews(period='7d')
  • Optional choose custom day range (mm/dd/yyyy) googlenews = GoogleNews(start='02/01/2020',end='02/28/2020')
  • Optional set encode googlenews = GoogleNews(encode='utf-8') or googlenews.set_lang('en') googlenews.set_period('7d') googlenews.set_time_range('02/01/2020','02/28/2020') googlenews.set_encode('utf-8')
  • news.google.com search sample googlenews.get_news('APPLE')
  • **news.google.com get news by topics # Sports googlenews.set_topic('CAAqKggKIiRDQkFTRlFvSUwyMHZNRFp1ZEdvU0JYQjBMVUpTR2dKQ1VpZ0FQAQ') googlenews.get_news()
  • **news.google.com get news by topic and sections ``` # Sports googlenews.settopic('CAAqKggKIiRDQkFTRlFvSUwyMHZNRFp1ZEdvU0JYQjBMVUpTR2dKQ1VpZ0FQAQ') # Football Soccer googlenews.setsection('CAQiS0NCQVNNZ29JTDIwdk1EWnVkR29TQlhCMExVSlNHZ0pDVWlJT0NBUWFDZ29JTDIwdk1ESjJlRFFxQ3dvSkVnZEdkWFJsWW05c0tBQSouCAAqKggKIiRDQkFTRlFvSUwyMHZNRFp1ZEdvU0JYQjBMVUpTR2dKQ1VpZ0FQAVAB')

googlenews.get_news() - **google.com** section news search sample googlenews.search('APPLE') ```

Default return first page result, you don't need to get first page again, otherwise you might get duplicate result. To get other page of search results:

googlenews.get_page(2) - If you only want to get specific page result = googlenews.page_at(2) - If you want to get the total result number of the search(this is approximate number, not exact number, it is the number showing on the google search page) (Note: this function is not available for googlenews.search()) googlenews.total_count() - Get results will return the list, [{'title': '...', 'media': '...', 'date': '...', 'datetime': '...', 'desc': '...', 'link': '...', 'img': '...'}] googlenews.results() if googlenews.results(sort=True) the tool will try to order the results in cronologically reversed order

  • Get texts will return the list of news titles googlenews.get_texts()
  • Get links returns the list of news links googlenews.get_links()
  • Clear result list before doing another search with the same object googlenews.clear() ## Issue Image is not working in the latest version, it can only return default google loading gif

The date range is not always working as Google may return the result with random order or out of date range.

Google may recognize the program as automated robots and block the IP, using cloud server and fetching data with high frequency will get higher chance to be blocked.

Owner

  • Name: Iceloof
  • Login: Iceloof
  • Kind: organization
  • Email: admin@iceloof.com

GitHub Events

Total
  • Issues event: 1
  • Watch event: 39
  • Issue comment event: 2
  • Fork event: 8
Last Year
  • Issues event: 1
  • Watch event: 39
  • Issue comment event: 2
  • Fork event: 8

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 99
  • Total Committers: 15
  • Avg Commits per committer: 6.6
  • Development Distribution Score (DDS): 0.323
Past Year
  • Commits: 8
  • Committers: 3
  • Avg Commits per committer: 2.667
  • Development Distribution Score (DDS): 0.25
Top Committers
Name Email Commits
HurinHu h****n@l****a 67
Marc LaBelle m****e@g****m 6
Mario Cilento m****3@g****m 6
Hurin h****n@h****x 4
dmifer 6****r 3
Jan-Gabriel Mylius b****n@p****e 3
Soulrein S****n@y****m 2
RBSHADOW r****s@g****m 1
Dhrumil Mehta d****a@g****m 1
Emre Emrah e****5@g****m 1
Cyanide s****3@g****m 1
Hugo h****l 1
wa.code 4****1 1
Eugene P l****e 1
Prajwal Jadhav 5****l 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 96
  • Total pull requests: 40
  • Average time to close issues: 15 days
  • Average time to close pull requests: 3 days
  • Total issue authors: 78
  • Total pull request authors: 24
  • Average comments per issue: 2.84
  • Average comments per pull request: 0.6
  • Merged pull requests: 28
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 3
  • Pull requests: 3
  • Average time to close issues: 6 days
  • Average time to close pull requests: 7 days
  • Issue authors: 3
  • Pull request authors: 3
  • Average comments per issue: 0.33
  • Average comments per pull request: 0.33
  • Merged pull requests: 2
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • fazialnjd (4)
  • SamratDey112358 (4)
  • jiangcheng1999 (3)
  • apavlo89 (2)
  • YukunYangNPF (2)
  • gmehta1996 (2)
  • ghost (2)
  • harkib (2)
  • Denon9205 (2)
  • wcorona269 (2)
  • wastu01 (2)
  • GregorKerr1996 (2)
  • alinemati-uwm (2)
  • shred66 (1)
  • deepeshpalkar23 (1)
Pull Request Authors
  • HurinHu (11)
  • david-xhf (4)
  • dmifer (3)
  • la-strole (2)
  • c0008 (2)
  • bpyle02 (2)
  • Flopsky (2)
  • lclpedro (2)
  • jacobhtye (2)
  • DanieleMorotti (2)
  • MCilento93 (2)
  • emremrah (1)
  • dmil (1)
  • xchinox (1)
  • samwesley (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 18,679 last-month
  • Total dependent packages: 2
  • Total dependent repositories: 14
  • Total versions: 44
  • Total maintainers: 1
pypi.org: googlenews

Google News search for Python

  • Versions: 44
  • Dependent Packages: 2
  • Dependent Repositories: 14
  • Downloads: 18,679 Last month
Rankings
Downloads: 2.9%
Dependent repos count: 3.9%
Stargazers count: 4.0%
Average: 4.1%
Dependent packages count: 4.7%
Forks count: 5.0%
Maintainers (1)
Last synced: 6 months ago

Dependencies

setup.py pypi
  • beautifulsoup4 *
  • dateparser *
  • python-dateutil *
.github/workflows/python-publish.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite