Closed milansavani closed 1 year ago
AWS has been banned entirely by Twitter since at least late 2020, probably even longer: #79
@JustAnotherArchivist Getting the same error on my local Virtual Linux machine (Ubuntu 22.04) that run in VMWare fusion on MacBook M1 Pro.
Also In the AWS environment, I can scrape replies, but not user information and user's tweets. Same in the Virtual Linux machine.
Outside of AWS (and similarly banned platforms), it's #846.
It's possible that the IP ban for AWS doesn't apply to everything. I never investigated that. In any case, it's something Twitter is doing, and there's no workaround for it other than, well, not using AWS to talk to Twitter's servers.
My remark may be irrelevant but why does the code still query the adaptive
api when it has been restricted since the end of April?
Doesn't the code send requests to the SearchTimeline
API now?
@JustAnotherArchivist When I tried to install the development version then It show the "Unknown" package installed. How Can I use that?
Logs:
Collecting git+https://github.com/JustAnotherArchivist/snscrape.git
Cloning https://github.com/JustAnotherArchivist/snscrape.git to /tmp/pip-req-build-6w2mzmkz
Running command git clone --filter=blob:none --quiet https://github.com/JustAnotherArchivist/snscrape.git /tmp/pip-req-build-6w2mzmkz
Resolved https://github.com/JustAnotherArchivist/snscrape.git to commit 0d824ab77334ed4ab6250e5e491171afeccfb298
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: UNKNOWN
Building wheel for UNKNOWN (pyproject.toml) ... done
Created wheel for UNKNOWN: filename=UNKNOWN-0.6.2.20230321.dev50+g0d824ab-py3-none-any.whl size=13562 sha256=6120fee5bc936de13bdd4c1cbfdae6c3e3606f4d4d8168cf61f3ccb5252c0b16
Stored in directory: /tmp/pip-ephem-wheel-cache-fwcz3thi/wheels/05/e9/f7/57056e7c7e44b1feed932fa49fdec9d706c4f563e37160ab74
Successfully built UNKNOWN
Installing collected packages: UNKNOWN
Successfully installed UNKNOWN-0.6.2.20230321.dev50+g0d824ab```
@AntoinePaix Because they aren't using the dev version. I intend to finally cut a new release this week, hopefully today.
@milansavani This is also a duplicate (#905). Please search the issue tracker for your problems.
I would like to introduce myself as a newcomer to the world of Python and web scraping. My objective is to scrape user data and tweets, and I have successfully achieved this on my local system. However, I encountered an error when attempting to execute the same code on an AWS EC2 instance. I have attached the error logs below for your perusal.
Here are the steps I followed
pip3 install snscrape
.snscrape twitter-user textfiles
OS
Description: Ubuntu 22.04.2 LTS
Release: 22.04
Python
Python 3.11.4
snscrape
snscrape 0.6.2.20230320
Error Log