On https://x.com/settings/, click
More -> Settings and privacy -> Download an archive of your data
.
Wait for a message from x.com: "@XXX your X data is ready" Download the
archive.
1 | cp data/tweets.js tweets.ts |
Change the first line from window.YTD.tweets.part0 = [
to let part0 = [
, and append
1 | import { unescape } from "@std/html/entities"; |
Then run deno run --allow-write=. tweets.ts
1 | % cat 2022/index.md |
tweet0
tweet1