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

Reddit is not working #3

Open
karamusluk opened this issue Nov 12, 2018 · 0 comments
Open

Reddit is not working #3

karamusluk opened this issue Nov 12, 2018 · 0 comments

Comments

@karamusluk
Copy link

Hello,

I am not able to connect via Reddit python. Below is my log when I try to use the given Reddit.

raise self.STATUS_EXCEPTIONS[response.status_code](response) ServerError: received 503 HTTP response WARNING:prawcore:Retrying due to 503 status: GET https://oauth.reddit.com/r/Bitcoin/search/ WARNING:prawcore:Retrying due to 503 status: GET https://oauth.reddit.com/r/Bitcoin/search/ WARNING:prawcore:Retrying due to 503 status: GET https://oauth.reddit.com/r/Bitcoin/search/ WARNING:prawcore:Retrying due to 503 status: GET https://oauth.reddit.com/r/Bitcoin/search/ ERROR:root:received 503 HTTP response Traceback (most recent call last): File "Reddit.py", line 66, in getThreads searchResults = list(reddit.subreddit(subredditName).search('timestamp:{}..{}'.format(cts1, cts2), syntax='cloudsearch')) File "/Library/Python/2.7/site-packages/praw/models/listing/generator.py", line 80, in next return self.__next__() File "/Library/Python/2.7/site-packages/praw/models/listing/generator.py", line 52, in __next__ self._next_batch() File "/Library/Python/2.7/site-packages/praw/models/listing/generator.py", line 62, in _next_batch self._listing = self._reddit.get(self.url, params=self.params) File "/Library/Python/2.7/site-packages/praw/reddit.py", line 391, in get data = self.request('GET', path, params=params) File "/Library/Python/2.7/site-packages/praw/reddit.py", line 506, in request params=params) File "/Library/Python/2.7/site-packages/prawcore/sessions.py", line 185, in request params=params, url=url) File "/Library/Python/2.7/site-packages/prawcore/sessions.py", line 128, in _request_with_retries retries, saved_exception, url) File "/Library/Python/2.7/site-packages/prawcore/sessions.py", line 94, in _do_retry params=params, url=url, retries=retries - 1) File "/Library/Python/2.7/site-packages/prawcore/sessions.py", line 128, in _request_with_retries retries, saved_exception, url) File "/Library/Python/2.7/site-packages/prawcore/sessions.py", line 94, in _do_retry params=params, url=url, retries=retries - 1) File "/Library/Python/2.7/site-packages/prawcore/sessions.py", line 130, in _request_with_retries

Also I am trying to run below on console.

python Reddit.py --subreddit Bitcoin --year 2018 --timestamp_interval 20000

As you referred, I have created a new app on Reddit.
Could you assist me on this issue ?

Thanks

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

1 participant