Mincka / DMArchiver

A tool to archive the direct messages, images and videos from your private conversations on Twitter
GNU General Public License v3.0
222 stars 25 forks source link

twitter account getting locked #40

Closed pj267 closed 6 years ago

pj267 commented 6 years ago

my twitter account is being locked eachtime I use dmarchiver

Elhazet commented 6 years ago

Same here. No downloads possible anymore, no matter which version is used.

Mincka commented 6 years ago

Could you tell me at which moment the script stops its execution? Is it before the login, before the retrieval of the conversations or during the crawl of one of the conversations?

Elhazet commented 6 years ago

In my case it happens immediately. It looks like a "normal" crash but at the login moment (in fact, just after I' m getting the message there was a login from a firefox browser) my Twitter account immediately locks. No crawling at all. Using Windows 7 and 10 with version 2.0 and earlier.

Mincka commented 6 years ago

I think I need to update the user-agent in the requests but for the login, it's a bit a tricky part. The only automated login I was able to perform was with a Firefox user-agent, on the mobile version...

For some reason (maybe some antibot protection), I was not able to make the script get a valid session with other browsers on this form and no browser at all on the main login form.

I need to investigate and implement the delay between requests (#37).

Mincka commented 6 years ago

Latest version has a -d / --delay option to slow down the tool. User-agent are more recent and more appropriate depending on the used platform (OS) Unlocking an account and attempt to run the script just after seems to be always successful in my case. Other options may be investigated in another issue to keep cookies locally. #42