-
Notifications
You must be signed in to change notification settings - Fork 4
Known Issues
v2.11.0-beta.0 has a problem where it downloads unrelated videos.
I will fix this later.
This should be fixed with v2.11.0 (stable).
twdl uses Nitter instances
to pull image and video URLs from tweets.
If twdl fails to access a Nitter instance for a particular tweet,
it tries to access that tweet with another instance (5 times max).
For example, you want to download a video from a tweet and you try to download it with twdl like the example below:
$ twdl download https://twitter.com/example/status/1234567890
i (1 / 1) Parsing URL: https://twitter.com/example/status/1234567890
i Nitter URL: https://nitter.projectsegfau.lt/example/status/1234567890
‼ Retrying to download again: 'https://nitter.rawbit.ninja/example/status/1234567890'
i Found 0 item(s) in tweet.
√ Tweet download has finished.
You know this tweet has video but twdl says "found 0 items", why?
It's because these Nitter URLs did not give twdl any video URL to download.
That's why sometimes we get "0 items" for tweets with videos (or images).
Because twdl didn't give any errors when downloading this tweet, it's successful.
And when a tweet is downloaded without any errors,
twdl caches the responses from Nitter pages and other APIs.
So if you try download this tweet again,
it will always give you "0 items" because it's cached.
To override this behavior, we need to pass an argument --no-cache
to twdl like so:
$ twdl download https://twitter.com/example/status/1234567890 --no-cache
Now twdl will ignore the cache we store in %TEMP%\twdl-cache.json
and try to download the tweet again.
This way it should download successfully (if it's a working Nitter instance).
twdl uses a program called ExifTool and a Node.js library to interact with it.
You can view and edit the metadata of images using IrfanView.
- Open an image
- Click menu item
Image > Information
- Click
Comment
You can embed metadata in videos but they are not visible in Windows Explorer > Properties > Details tab. You can view the video metadata using ExifTool itself.
If you want to view a video's tweet metadata, run the following command:
rem path to exiftool executable
doskey exiftool="%appdata%\npm\node_modules\twdl\node_modules\exiftool-vendored.exe\bin\exiftool.exe"
rem show comment only
exiftool -p "$Comment" "C:\path\to\your\video.mp4"