Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 906 Bytes

README.md

File metadata and controls

21 lines (17 loc) · 906 Bytes

FetchGoogleNews

Fetch Google News RSS in JSON format using Python

Search through Google News with the "search_term" and get the headlines and the contents of the news that was released today, this week, this month, or this year ("date_filter").

get_news_data(search_term, data_filter)

Parameters

search_term  -  a string that will be used by the function to search the news in Google News 
                   e.g. 'Samsung Galaxy Note 9', 'Basketball' 
date_filter  -  date that will filter available news 
                   'today' - get headlines of the news that are released only in today 
                   'this_week' - get headlines of the news that are released in this week 
                   'this month' - news released in this month 
                   'this_year' - news released in this year
                   number - news released in number of days ago