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

always 429 rate limit error #1039

Closed
mohammadali-seifkashani opened this issue Dec 30, 2023 · 1 comment
Closed

always 429 rate limit error #1039

mohammadali-seifkashani opened this issue Dec 30, 2023 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@mohammadali-seifkashani

Describe the bug

Hello and respect. This line in modules/twitter.py always causes 429 error.
self._post('https://api.twitter.com/1.1/guest/activate.json', data = b'', headers = self._apiHeaders, responseOkCallback = self._check_guest_token_response)
Could you please check and correct this?

How to reproduce

Example code:

from snscrape.modules import telegram, instagram, twitter

for i, t in enumerate(twitter.TwitterUserScraper('hamedkashani__').get_items()):
    print(t)
    if i == 3:
        break

Expected behaviour

Some tweet objects :)

Screenshots and recordings

image

Operating system

Windows 11

Python version: output of python3 --version

3.10.11

snscrape version: output of snscrape --version

snscrape 0.7.0.20230622

Scraper

TwitterUserScraper

How are you using snscrape?

Module (import snscrape.modules.something in Python code)

Backtrace

No response

Log output

No response

Dump of locals

No response

Additional context

No response

@mohammadali-seifkashani mohammadali-seifkashani added the bug Something isn't working label Dec 30, 2023
@JustAnotherArchivist JustAnotherArchivist added duplicate This issue or pull request already exists and removed bug Something isn't working labels Dec 31, 2023
@JustAnotherArchivist
Copy link
Owner

#754

@JustAnotherArchivist JustAnotherArchivist closed this as not planned Won't fix, can't repro, duplicate, stale Dec 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants