gallery-dl
gallery-dl copied to clipboard
How to seperate twitter replies to other folder
i want to seperate replies from other user to folder Replies but only the twitter target tweets got downloaded to replies folder the rest are scattered into main folder as a username folder
this is my setting and my target
gallery-dl https://twitter.com/user/with_replies
"directory": { "" : ["{user[name]} [{user[id]}]"], "retweet_id" : ["{user[name]} [{user[id]}]", "Retweets"], "locals().get('quote_by')": ["{user[name]} [{user[id]}]", "Quoted"], "reply_id" : ["{user[name]} [{user[id]}]", "Replies"] },
pls help!?
user[…]
is supposed to refer to the user from your twitter URL, regardless of who actually published the tweet. Try author[…]
instead.
"directory": {
"" : ["{author[name]} [{author[id]}]"],
"retweet_id" : ["{author[name]} [{author[id]}]", "Retweets"],
"locals().get('quote_by')": ["{author[name]} [{author[id]}]", "Quoted"],
"reply_id" : ["{author[name]} [{author[id]}]", "Replies"]
}
still the same with {author[name]} it got into main folder instead of username/Replies
.\michelleeeck99 [2397627511]\20210211_1359807144619433989_1.jpg .\michelleeeck99 [2397627511]\20210211_1359807144619433989_2.jpg .\michelleeeck99 [2397627511]\20220622_1539540734788792320_1.jpg .\michelleeeck99 [2397627511]\20220622_1539540734788792320_2.jpg .\queerkunoichi [62426401]\20220624_1540159295224152064_1.jpg .\ZeeMotionID [886605128]\Quoted\ZeeMotionID_20220410_1513126099563147264_1.jpg .\NetflixID [2397627511]\Quoted\NetflixID_20220622_1539518558543167488_1.mp4 .\michelleeeck99 [2397627511]\20220610_1535253272616792064_1.jpg .\michelleeeck99 [2397627511]\20220610_1535253272616792064_2.jpg
Ah sorry, I misunderstood your question.
So for twitter.com/USER/with_replies
, you want everything to go into USER
and retweets/quotes/replies to specifically go into USER/Retweets
/USER/Quoted
/USER/Replies
, did I get that right this time?
If so, that's not entirely possible at the moment, but I do plan on implementing the necessary changes in the next "big" release, i.e. 1.23.0 (https://github.com/mikf/gallery-dl/issues/2712#issuecomment-1169188499).
As a workaround, you could use something like -o keywords.twuser=USER
and -o keywords.twuid=USER_ID
and use those keywords in your format strings, but you'd have to manually input those values, so this is probably out of the question.
yes and if possible if the user self replies to himself, include the master tweet to Replies folder with his replies included for a case when a user tweet a picture then reply to himself with second, third, and fourth pictures. it will go into 'self replies' folder
could you tell me more detail with the workaround? I dont unsderstand
So, is the problem solved? I want to have all the REPLIES under the same tweet in the same directory, what is the solution? For example. tweet_author['name']/conversation_id_tweet content/ So far, looking at the parameters for calling reply via the - K parameter author['name'] shows the user name of the main tweet user['name'] displays the user name of the reply
But when quoted in the conf file author['name'] and user['name'] both show the user name of the reply.