kotartemiy / newscatcher

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

Cannot pull data. #12

Open navkamalrakra opened 4 years ago

navkamalrakra commented 4 years ago

I am unable to get news feed. My internet connection is working fine. Find below my requests. Python version 3.7.3

from newscatcher import Newscatcher nc = Newscatcher(website = 'nytimes.com') results = nc.get_news()

No results found check internet connection or query parameters

An additional sample request to check my internet connection.

import requests r = requests.get('https://github.com/timeline.json') r.json() {'message': 'Hello there, wayfaring stranger. If you’re reading this then you probably didn’t see our blog post a couple of years back announcing that this API would go away: http://git.io/17AROg Fear not, you should be able to get what you need from the shiny new Events API instead.', 'documentation_url': 'https://developer.github.com/v3/activity/events/#list-public-events'}

BecketTrotter commented 4 years ago

I copy and pasted your code and it worked on my end. I'm on 3.7.4, would you mind trying on 3.7.4?

navkamalrakra commented 4 years ago

I tried it on 3.8.2 and it worked. Will try on 3.7.4 sometime.