TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Adventures in Deleting Tweets

83 点作者 loeber将近 7 年前

6 条评论

__bee将近 7 年前
You don&#x27;t need all of this. All what you need is to request your data from twitter (Your Tweet archive &gt; <a href="https:&#x2F;&#x2F;twitter.com&#x2F;settings&#x2F;account" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;settings&#x2F;account</a>). Iterate through the csv file and use tweet_id to unlike, remove or do what you want through their Twitter API.<p>Source: I have done it before, and it took less time&#x2F;work than what you have stated.
评论 #17221302 未加载
评论 #17221110 未加载
beager将近 7 年前
It seems like it should be easy for that API to provide access to take action on tweets beyond the 3200 threshold, by passing it along to a rate-limited task queue. I imagine there’s an incentive to not provide hot access to old activity data due to infrastructure constraints, but if you just responded HTTP 202 and batched them all later, it’d be gentle enough on the colder shards.
评论 #17219808 未加载
_jomo将近 7 年前
Twitter (and their API) is horribly broken and inconsistent.<p>There is twint [0], which bypasses the API and just scrapes their website to circumvent API limitations.<p>The wrong number of favorites could be cached and it will go a way after a day or two, or it might be favorites on Tweets you can&#x27;t see (because you&#x27;re blocked, or the account is private, or the Tweet&#x2F;account has been deleted).<p>As __bee said in another comment, you can request your Tweet archive and get the Tweet IDs from the CSV (I&#x27;ve seen a handful of Tweets of mine that were not in the CSV, but those are very rare). At least for deleting Tweets, there is no rate limit. Twitter also won&#x27;t show your own Retweets when the original Tweet is no longer visible to you (although they might be included in the CSV) and made it impossible to interact with those. It used to be possible to delete Retweets if you somehow got its ID, but I think this has been disabled as well.<p>If you want to play around with the API but don&#x27;t want to register your phone number and an application at Twitter, you can use tools such as the &quot;t&quot; cli [1] or the &quot;twython&quot; library [2] with any of these publicly known API keys [3].<p>0: <a href="https:&#x2F;&#x2F;github.com&#x2F;haccer&#x2F;twint" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;haccer&#x2F;twint</a><p>1: <a href="https:&#x2F;&#x2F;github.com&#x2F;sferik&#x2F;t&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sferik&#x2F;t&#x2F;</a><p>2: <a href="https:&#x2F;&#x2F;github.com&#x2F;ryanmcgrath&#x2F;twython" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ryanmcgrath&#x2F;twython</a><p>3: <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;sokcuri&#x2F;42fba0b455a7b7b8ab772ba344268def" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;sokcuri&#x2F;42fba0b455a7b7b8ab772ba34426...</a>
foodstances将近 7 年前
If you&#x27;re doing all the browser scraping, wouldn&#x27;t it have been easier to just automate your browser clicking the delete&#x2F;unlike button itself? I&#x27;ve done this in the past with Selenium, sometimes needing GreaseMonkey.
评论 #17220550 未加载
rakic将近 7 年前
If any Mac or iOS developer wants to help create a native app that automates this tedious procedure, I’ll be happy to design it.
ryanmerket将近 7 年前
I’ve been using Tweet Cleaner for iOS for over a year. Works great.