JustAnotherArchivist / snscrape

A social networking service scraper in Python
GNU General Public License v3.0
4.52k stars 712 forks source link

Failed to search 403-Blocked #941

Closed maydodu closed 1 year ago

maydodu commented 1 year ago

Describe the bug

When I try to search, I get this error: Errors: blocked (403), blocked (403), blocked (403), blocked (403)

How to reproduce

import snscrape.modules.twitter as sntwitter
import pandas as pd

search_string = 'kemal kilicdaroglu'
for i, tweet in enumerate(sntwitter.TwitterSearchScraper(search_string).get_items()):
    if i > 10:
        break
    tmp_dict[tweet.id] = tweet.user.username
    a = tweet
    tweets_list1.append([tweet.date, tweet.id, tweet.content, tweet.user.username])

Expected behaviour

No 403 Error

Screenshots and recordings

image

Operating system

Ubuntu 22.04

Python version: output of python3 --version

3.10.6

snscrape version: output of snscrape --version

0.6.2.20230320

Scraper

TwitterSearchScraper

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

vortixhead commented 1 year ago

Having the exact same issue here with snscrape-0.6.2.20230321.dev30+gfdbd741

JustAnotherArchivist commented 1 year ago

846