Created
January 24, 2022 05:19
-
-
Save Aditya1001001/2a21a304a7acc5fa301291a2eb211ba1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from newscatcher import describe_url | |
websites = ['nytimes.com', 'cronachediordinariorazzismo.org', 'libertaegiustizia.it'] | |
for website in websites: | |
print(describe_url(website)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from newscatcher import Newscatcher, describe_url | |
mm = Newscatcher(website = 'mediamatters.org') | |
for index, headline in enumerate(mm.get_headlines()): | |
print(index, headline) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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