newscatcher icon indicating copy to clipboard operation
newscatcher copied to clipboard

Cannot pull data.

Open navkamalrakra opened this issue 4 years ago • 2 comments

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'}

navkamalrakra avatar May 21 '20 13:05 navkamalrakra

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?

BecketTrotter avatar May 21 '20 14:05 BecketTrotter

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

navkamalrakra avatar May 21 '20 14:05 navkamalrakra