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

followers: CRITICAL:root:twint.feed:Follow:IndexError #10

Open
yashodhank opened this issue Jun 26, 2022 · 1 comment
Open

followers: CRITICAL:root:twint.feed:Follow:IndexError #10

yashodhank opened this issue Jun 26, 2022 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed wontfix This will not be worked on

Comments

@yashodhank
Copy link

Initial Check

I am unable to get followers or following output

$ twint -u twitter_handle --followers
CRITICAL:root:twint.feed:Follow:IndexError
$ twint -u twitter_handle --following
CRITICAL:root:twint.feed:Follow:IndexError

My venv

git clone --depth=1 https://github.com/minamotorin/twint
pip3 install . -r requirements.txt
(venv) root@dev:~/twinproject/twint# python --version
Python 3.8.10
(venv) root@dev:~/twinproject/twint# pip3 --version
pip 20.0.2 from /root/twinproject/venv/lib/python3.8/site-packages/pip (python 3.8)

Thank you so much for sharing bug fixes and updates!

@minamotorin minamotorin added bug Something isn't working help wanted Extra attention is needed wontfix This will not be worked on labels Jun 27, 2022
@minamotorin
Copy link
Owner

I know, but unfortunately, I think there is no way to scrape following or followers without a Twitter account now.

Even in the official client, you need to be logged in to see it.
So, I suppose an QAuth Token is required to request following or followers data.
In any case, I cannot fix this until I find a way to see it without logging in.

Actually, I tried the following API url with reference to gallery-dl's code (please replace <userId> by user ID).

https://twitter.com/i/api/graphql/mIwX8GogcobVlRwlgpHNYA/Following?variables=%7B%22userId%22%3A%22<userId>%22%2C%22count%22%3A100%2C%22includePromotedContent%22%3Afalse%2C%22withSuperFollowsUserFields%22%3Atrue%2C%22withBirdwatchPivots%22%3Afalse%2C%22withDownvotePerspective%22%3Afalse%2C%22withReactionsMetadata%22%3Afalse%2C%22withReactionsPerspective%22%3Afalse%2C%22withSuperFollowsTweetFields%22%3Atrue%2C%22withClientEventToken%22%3Afalse%2C%22withBirdwatchNotes%22%3Afalse%2C%22withVoice%22%3Atrue%2C%22withV2Timeline%22%3Afalse%2C%22%5F%5Ffs%5Finteractive%5Ftext%22%3Afalse%2C%22%5F%5Ffs%5Fdont%5Fmention%5Fme%5Fview%5Fapi%5Fenabled%22%3Afalse%7D

But the response said Authorization: Denied by access control: unspecified reason.
gallery-dl https://twitter.com/<username>/following also doesn't work without logging in.

This is the reason why I cannot fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants