Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to seperate twitter replies to other folder #2749

Open
afterdelight opened this issue Jul 12, 2022 · 5 comments
Open

How to seperate twitter replies to other folder #2749

afterdelight opened this issue Jul 12, 2022 · 5 comments

Comments

@afterdelight
Copy link

afterdelight commented Jul 12, 2022

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!?

@mikf
Copy link
Owner

mikf commented Jul 13, 2022

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"]
    }

@afterdelight
Copy link
Author

afterdelight commented Jul 13, 2022

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

@mikf
Copy link
Owner

mikf commented Jul 13, 2022

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 (#2712 (comment)).

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.

@afterdelight
Copy link
Author

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

@Cs0o
Copy link

Cs0o commented Nov 24, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants