-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
Discussion: Accounts survival rate #175
Comments
It seems like it's gotten much harder. Previously I was losing a few accounts/day, and in the past few days I think I went through close to 1,000. 👎 Automated re-auth would be great. |
@takabinance Same for me - looks like I'm not the only one. Since yesterday my accounts constantly gets banned, and every time I tried to re-login it gets banned. This hardly happened before. Are you experiencing the same? |
I have not tried to re-login... it's with a large number of accounts. I'm not sure how I would do this. But, yeah, it seems like something changed very recently. |
Same here |
It seems that X has made some changed in recent days and start suspending accounts more frequently, all of my old and new accounts are all suspended (read only) yesterday. |
It's been around a month or so since X has started systematically detecting automated actions and suspending them, even asking for Arkose Challenges as often as every day, I wonder if there's a work around for this, because for now I'm forced to check my account every couple hours for Arkose Challenges so my automation keeps on going... (one workaround I know of is buying premium, which I will not do), any ideas? |
@TMDR I believe we are talking about different issues. The one you mentioned has exist for quite some time, while the issue we discussed just emerged a few days ago, when dealing with a large number of accounts. |
same here. |
Has anyone had luck with re-logging in (twscrape relogin ). I have tried with and without mfa_code and it always generates: twscrape.accounts_pool:login:162 - Failed to login 'accountname': 429 - {"code":88,"message":"Rate limit exceeded."} Have tried with multiple accounts, multiple machines and always same |
Also, has anyone tried with premium accounts. I'd happily pay for 10-20 accounts to avoid this. |
An small update about suspended (read only) account. |
@ExHix Thanks for your investigation! Are you suggesting the rate-limited account can still be used for read-only operation? From my experience very little tweets can be loaded for these accounts, maybe I didn't test it after enough intervals. But looking forward to your further update! |
@caterpillar1219 It is theoretically possible at least on searching if my guess is correct, but I need more data about rate limit behavior on read only accounts. If anyone also want to investigate it, this is my script to collect requesting data on X's search API. |
When checking the usage, despite several accounts being added to the db, the same 20 accounts or so get used over and over, has anyone else noticed it? Wouldn't a better rotation between available accounts be better? so each account does actions less often |
@BrokedTV There is some accounts pool setting you can modify in the code, to either select available accounts by alphabetic order(default), or random. I tried the later, but unfortunately it does not help. My guess is the rate limit is not only on the account level, but somehow on the proxy level. @ExHix fwiw, the normal account req limit is 49 - then it is locked for 15min and limit refreshed. But as I looked into those read-only account, it seems when read req reaches 8 or 9, then it is turned into an irreversible "Rate Limit Exceeded" state. |
Add this to your code: AccountsPool._order_by = "RANDOM()" The AccountsPool will then randomly select accounts instead of going through by username. |
Very useful findings! So does this mean if we set the limit to 8 or 9, it's less likely for the accounts to be suspended? |
Thank you for your findings. I set the limit to 5 requests for each 15 mins but unlucky my accounts still got banned. |
It may because X has implemented more radical abnormal behavior detection, no matter how low frequency you scrape. |
Based on two days of testing data, I can make a reliable guess that the rate limit reset window for each read only account is 24 hours, and for searching, each account has 11 to 13 times available in every window. Of course, this is not enough for the business which needs always scraping, but is enough for light users. I guess other APIs may have similar behaviors, but I won't dig into it further because the project is bit huge, if anyone is interested in it you can try it. |
@takabinance Hello, I would like to ask: How to achieve Automated re-auth? Look forward to your answer, thank you very much. |
@ExHix Yeah 11~13 req is too few. Normal accounts has 50 req every 15min. |
My current configuration is:
I'm back to losing 1-2% per day over the past few days. Will update in several days to see if this holds. |
I actually don't even know how to log back in once. I thought it was a simple twscrape relogin command, but this hasn't worked for me as I get a 429 every time. You can see that 2fa recovery was added to the library (but maybe not documented yet) but haven't dug into it to see how to use it yet. |
I saw somewhere else that a header for 'ui_metrics' could have been implemented recently. Twscrape hits the GQL directly hence not scoring high on the UI use - maybe this could be worth investigating? |
@takabinance Thanks for sharing! I also notice that I started to lose less accounts since yesterday. I'm not sure if it's because some changes I made(e.g. no. accounts, search freq), or it's the change from Twitter side. |
I haven't lost an account in a few days. I'm now only running around 100 accounts and maybe 40-50 requests per account per day (I only get the first page of search results so for me 1 search = 1 request). |
can I ask how you managed to create so many accounts? |
There are websites selling automatically registered accounts, no need to create manually. |
@ExHix Any examples? |
@ExHix any info? |
twaccs.com
|
thx |
3 weeks passed with no banned accounts, then yesterday all were banned. |
Same here... :( |
The bans are getting substantially frequent. |
It's looks like to be the end of Twitter's web scraper... |
I am very pessimistic about the future availability of twitter scraper. The platform is blocking accounts with unprecedented intensity, and I have even seen some users complaint that their normally used accounts are being restricted. Firetruck Elon Musk. |
Been reading up about X/Twitter scraping in the last few days. It's a bit off-topic, but as complexity and difficulty to keep up the cat and mouse game between X and scrapers, I think it makes increasingly much more sense for someone to build a service for this. I'd pay someone a subscription if they solved all these headaches for me. |
Hi. I don't have a silver bullet on this issue either. My test accounts have not been banned in recent months (but I rarely use them). I know from colleagues who do scrapping on a regular basis that more accounts have become required in the last couple weeks. In v0.13 I updated the endpoint to x.com and the GQL endpoints versions to the latest. Perhaps this will make the situation a little better. Pin this topic so they can participate in the discussion. |
hey,guys 2、Below are the test instructions 3、If an account is requested in dom mode for a long time (you can use selenium,DrissionPage, etc.), no matter how you request it, the account will not be suspended, and the speed too fast may only trigger the rate limit 4、However, if you use http and other direct requests, some encryption parameters are missing (initially suspected to be X-Client-UUID, x-client-transaction-id these two parameters), the account will be suspended if the request volume or time exceeds a certain amount.I set the interval of each request to be 15s, 25s,30s,60s, and the account will be suspended (the account may be suspended in the range of contact request 1-10h, generally not more than 10h). 5、In addition, I blocked all twitter requests except for SearchTimeline through the chrome extension, and then continuously used dom mode to request the SearchTimeline interface for 2 days, and so far no account has been suspended |
When you say 'dom mode', you mean through something like selenium and not using twscrape? |
yes, DrissionPage and selenium |
I know selenium and how it works. But how can you extract all seen tweets
in a proper, structured format from there? Is there a any documentation or
repo to get an idea?
Jwom ***@***.***> schrieb am Di. 2. Juli 2024 um 03:23:
… @Jwom <https://github.com/Jwom>
3、If an account is requested in dom mode for a long time (you can use
selenium,DrissionPage, etc.), no matter how you request it, the account
will not be suspended, and the speed too fast may only trigger the rate
limit
When you say 'dom mode', you mean through something like selenium and not
using twscrape?
yes, DrissionPage and selenium
DOM(Document Object Model)
—
Reply to this email directly, view it on GitHub
<#175 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC3DBACRGLTTC3GXGUB45GTZKH6KBAVCNFSM6AAAAABGX3JEPGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBRGYYDSNZUGE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
If you use selenium for crawler, you can extract using xpath or css syntax. If you use DrissionPage, you can turn on its url capture feature to capture some of these xhr packets, You can refer to this document at https://drissionpage.cn/whatsnew/4/#%EF%B8%8F-%E6%96%B0%E7%9A%84%E6%8A%93%E5%8C%85%E5%8A%9F%E8%83%BD |
Is there anybody here who would be open to offering "twscrape" as a service? @Jwom @takabinance particularly either of you. But open for anyone else, primarily X follower scraping - please reply with a contact method if so. |
As @Jwom pointed out there are different approaches. i figured out a way to to follower/friend tracking at scale without bans... and also realtime tweet tracking for known accounts. But need twscrape for searching. But I can barely keep my own instance running. :-) might be able to help depends what u need: takabinance at gmail |
Thanks, email sent. I have my Github in the email subject, maybe also check Spam folder just incase :). |
I'm wondering if anyone is seeing this error?
|
yes, me.
Starting from today. The strange thing is the account is not suspended.
Does anyone know why and how to solve this?
…On Wed, 10 Jul 2024 at 23:00, Brandon Root ***@***.***> wrote:
I'm wondering if anyone is seeing this error?
{37 Authorization: Denied by access control: Missing
LdapGroup(visibility-admins); Missing
LdapGroup(visibility-custom-suspension)} {37 Authorization: Denied by
access control: Missing LdapGroup(visibility-admins); Missing
LdapGroup(visibility-custom-suspension)}
—
Reply to this email directly, view it on GitHub
<#175 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC3DBAEBR2JYTEZ6F6WOCCLZLWOFPAVCNFSM6AAAAABGX3JEPGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRRGQ2TKMJTGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Seems to be intermittent and only impacts a smallish number of requests using the search endpoint, but I'm not seeing any today. Maybe Twitter pushed some bad code? |
I'm getting started with twscrape and, after much effort, reading, and AI assistance (I know very little about coding), I successfully created my own tool based on it. Many thanks! On my first search query, it used only one account, which resulted in a "Session expired or banned" message. I was able to re-login later. According to the stats, the account made 80 requests to scrape the data I needed. How can I automatically switch accounts after 20-30 requests to avoid hitting limits and continue scraping seamlessly? |
Hey guys (and other guys who read this). I've been successful in scraping followers, however when scraping Tweet Replies, I never entirely scrape ALL comments. For example, if a specific tweet has 1000 replies, sometimes I may only receive 100 lines in my output.txt. Has anybody has simillar issues? or knows how to circumvent this? thanks. |
can you opensource the code |
Contact me, we have this service. |
收到
|
I'm trying to use Selenium to make requests to Twitter, but after a while, my account got banned. I wasn't using a proxy—could that be the reason for the ban? |
Over the past month or so I've had issues with keeping accounts reliability logged in. I'm authenticating via username/email and password when I do log in and things tend to work for a while.
I've got a script that runs on a cronjob. I've tried reducing the frequency of running, etc but it is all getting the accounts de-authed eventually.
Because my account is following a few private accounts, the idea of just generating new accounts doesn't work.
Has anyone been able to reliability keep accounts 'alive' without reauthing or code for automated re-auth?
The text was updated successfully, but these errors were encountered: