Replies: 1 comment
-
|
This embeds the URL into the file's metadata as the {
"extractor": {
"twitter": {
"postprocessors": [
{
"name": "exec",
"command": ["exiftool", "-q", "-overwrite_original", "-title=https://twitter.com/{author[name]}/status/{tweet_id}", "{_path[4:]}"]
}
]
}
}
}Note that you'll need ExifTool in PATH. This saves a conversation placing a text file containing the post's URL and message along the corresponding media files: {
"extractor": {
"twitter": {
"filename": {
"quote_by": "{date:%Y-%m-%d %H%M%S} {author[name]} {tweet_id}{reply_id:? //}{num:? //>02} QUOTE.{extension}",
"": "{date:%Y-%m-%d %H%M%S} {author[name]} {tweet_id}{reply_id:? //}{num:? //>02}.{extension}"
},
"directory": ["{_now:%Y-%m-%d} {quote_id|conversation_id}"],
"conversations": true,
"text-tweets": true,
"replies": true,
"quoted": true,
"postprocessors": [
{
"name": "metadata",
"event": "post",
"filename": "{date:%Y-%m-%d %H%M%S} {author[name]} {tweet_id}{reply_id:? //}.txt",
"mode": "custom",
"format": "https://twitter.com/{author[name]}/status/{tweet_id}\n{content}\n"
}
]
}
}
}Note that this'll download both media-containing and text-only tweets. If you don't want that you might need to fiddle with the boolean settings ( The snippets above would go into your config file. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have not used the software. And I'm quite technically illiterate. But I'm wondering if say you are batch downloading bookmarked tweets. Is it possible to add the orignal tweet url to the metadata of the downloaded file during the download process, or maybe such metadata is present in the file?
I want to set up my twitter exports like this if its possible:
That way I could import the file-path and URL metadata of the downloaded media files into an excel document. And then join that with the tweets in text I have scraped. The text and media file would share parts of or the whole URL so I could just sort two columns by URL and tweets would all line up with the correct media files. Then I would have tweets with a local link to the file(s) in that tweet. Which seems like the ideal setup for twitter datahoarding
Beta Was this translation helpful? Give feedback.
All reactions