Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot pull data. #12

Open
navkamalrakra opened this issue May 21, 2020 · 2 comments
Open

Cannot pull data. #12

navkamalrakra opened this issue May 21, 2020 · 2 comments

Comments

@navkamalrakra
Copy link

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
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants