Skip to content

Instantly share code, notes, and snippets.

@Aditya1001001
Created January 24, 2022 05:19
Show Gist options
  • Save Aditya1001001/2a21a304a7acc5fa301291a2eb211ba1 to your computer and use it in GitHub Desktop.
Save Aditya1001001/2a21a304a7acc5fa301291a2eb211ba1 to your computer and use it in GitHub Desktop.
from newscatcher import describe_url
websites = ['nytimes.com', 'cronachediordinariorazzismo.org', 'libertaegiustizia.it']
for website in websites:
print(describe_url(website))
from newscatcher import Newscatcher, describe_url
mm = Newscatcher(website = 'mediamatters.org')
for index, headline in enumerate(mm.get_headlines()):
print(index, headline)
from pygooglenews import GoogleNews
gn = GoogleNews()
s = gn.search('boeing OR airbus')
for entry in s["entries"]:
print(entry["title"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment