kotartemiy / newscatcher

Programmatically collect normalized news from (almost) any website.
https://newscatcherapi.com/
MIT License
2.94k stars 284 forks source link

[REQUEST] Topic specific news without specifying a website? #10

Closed manugarri closed 4 years ago

manugarri commented 4 years ago

Would it be possible to get the tech headlines without specifying a website?

0xYasser commented 4 years ago

Like this?

 tech_headlines = [Newscatcher(source).get_headlines() for source in urls(topic = 'tech', language='en')]

be carful tho it's going to be a huge number of requests

kotartemiy commented 4 years ago

Yes, that's how you could do it

Like this?

 tech_headlines = [Newscatcher(source).get_headlines() for source in urls(topic = 'tech', language='en')]

be carful tho it's going to be a huge number of requests