-
I'd like to do this for both pixiv and twitter. I'd like to have the tags as a seperate .txt file with each tag added on a new line. How would I go about with this? |
Beta Was this translation helpful? Give feedback.
Answered by
mikf
Sep 25, 2021
Replies: 1 comment 3 replies
-
For Pixiv: {
"name" : "metadata",
"event" : "post",
"mode" : "custom",
"format": "{tags:J\n}\n",
"filename": "{id}.tags.txt"
} (Replacing For Twitter, assuming a want to write a Tweet's hashtags: {
"name" : "metadata",
"event" : "post",
"mode" : "custom",
"format": "{hashtags:?//J\n}\n",
"filename": "{tweet_id}.tags.txt"
} This will write empty files for Tweets without hashtags. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
pomiru
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For Pixiv:
(Replacing
mode
andformat
with just"mode" : "tags"
would also work)For Twitter, assuming a want to write a Tweet's hashtags:
This will write empty files for Tweets without hashtags.
To prevent this, add a
"filter": "'hashtags' in locals()"