twayback
10-16-22 Release
查找和下載已刪除的推文需要很多時間。值得慶幸的是,使用此工具,它變成了小菜一碟! ?
Twayback是Twitter和Wayback機器的Portmanteau。輸入您所需的Twitter用戶名,然後讓Twayback完成其餘的工作!
twayback -u用戶名[選項]
-u, --username Specify target user's Twitter handle
--batch-size Specify how many URLs you would like to
examine at a time. Expecting an integer between
1 and 100. A larger number will give you a speed
boost but at the risk of errors. Default = 100
--semaphore-size Specify how many urls from --batch-size you would
like to query asyncronously at once. Expecting an integer
between 1 and 50. A larger number will give you a speed
boost but at the risk of errors. Default = 50
-from, --fromdate Narrow search for deleted Tweets *archived*
on and after this date
(can be combined with -to)
(format YYYY-MM-DD or YYYY/MM/DD
or YYYYMMDD, doesn't matter)
-to, --todate Narrow search for deleted Tweets *archived*
on and before this date
(can be combined with -from)
(format YYYY-MM-DD or YYYY/MM/DD
or YYYYMMDD, doesn't matter)
--proxy-file Provide a list of proxies to use. You'll need this for checking large groups of tweets
Each line should contain one url:port to use
The script will pick a new proxy from the list at random after each --batch-size
Logs After checking a user's tweets but before you
make a download selection, a folder will be created
with that username. That folder will contain a log of:
<deleted-twitter-url>:<deleted-wayback-url> in case you needed them
Examples:
twayback -u taylorswift13 Downloads all of @taylorswift13's
deleted Tweets
twayback -u jack -from 2022-01-05 Downloads all of @jack's
deleted Tweets
*archived* since January 5,
2022 until now
twayback -u drake -to 2022/02/09 Downloads all of @drake's
deleted Tweets *archived*
since the beginning until
February 9, 2022
twayback -u EA -from 2020-08-30 -to 2020-09-15 Downloads all of @EA's
deleted Tweets *archived*
between August 30, 2020 to
September 15, 2020
git clone https://github.com/Mennaruuk/twayback
cd twayback
pip3 install -r requirements.txt
或可能
pip install -r requirements.txt
運行命令:
python3 twayback.py -u USERNAME
(用您的目標手柄替換USERNAME )。
有關更多信息,請查看上面的“使用”部分。
屏幕截圖是使用劇作家完成的。要成功拍攝屏幕截圖,請按照以下步驟操作:
playwright install 。 默認的速度設置為--semaphore-size和--batch-size設置為最快的執行。減少這些數字以減慢您的執行並減少錯誤的機會。要檢查大量的推文(> 800),您需要使用Web代理和--proxy-file標誌