You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Various folders/config files - Priority: Getting the X.com files to download with date of being published in the filename along with the ID number string
#6852
Open
bloodconfetti opened this issue
Jan 18, 2025
· 0 comments
Sorry to be a bother, but please note that I'm very uneducated when it comes to technology, so anything you think is simple, probably has to be dumbed down a bit for me to be able to implement it.
I have three gallery-dl folders on my computer.
C:\Users\redacted\AppData\Roaming
C:\Users\redacted\gallery-dl
One in my documents folder that's for a specific subject matter.
Downloading an X.com account into 2. does not yield a publish date within the filename.
Do I just need to move the config.json into folder 2.? And likewise, would I have this line as such: "cookies": ["C:\Users\redacted\gallery-dl\x.com_cookies.txt"],
For the record, originally I had my cookies file in location 1. but I got an error, so corrected it by moving that into the folder. Likewise, I was running into errors when I had my Cookies text file path in the location below, AND when I tried to say 'vivaldi' for my browser cookies to be used instead. So...
Right now, I scrape an X.com account with the command: C:\Users\redacted\gallery-dl>gallery-dl --cookies x.com_cookies.txt URL
But I'd like not to have to include the --cookies part.
**Without moving the config.json file to folder 2. I receive the error: C:\Users\redacted\gallery-dl>gallery-dl --cookies x.com_cookies.txt https://x.com/redacted [config][error] JSONDecodeError when loading 'C:\Users\redacted\AppData\Roaming\gallery-dl\config.json': Invalid \escape: line 3 column 24 (char 43)
When I move the config.json file to folder 2., having installed the above line in the cookies section, and try it out, I get the following error: C:\Users\redaced\gallery-dl>gallery-dl https://x.com/redacted [config][error] JSONDecodeError when loading 'C:\Users\redacted\gallery-dl\config.json': Invalid \escape: line 3 column 24 (char 43) [twitter][error] AuthorizationError: Login required**
So I will be undoing those changes...
Thank you for any assistance! And please remember: if you think something is common sense. For me, it probably isn't! Lol, so sorry!
The text was updated successfully, but these errors were encountered:
Sorry to be a bother, but please note that I'm very uneducated when it comes to technology, so anything you think is simple, probably has to be dumbed down a bit for me to be able to implement it.
I have three gallery-dl folders on my computer.
In 1. I have:
My config.json looks like:
{ "extractor":{ "cookies": [""], "x":{ "users": "https://x.com/{legacy[screen_name]}", "text-tweets":true, "quoted":true, "retweets":true, "logout":true, "replies":true, "filename": "twitter_{author[name]}_{tweet_id}_{num}.{extension}", "directory":{ "quote_id != 0": ["x", "{quote_by}" , "quote-retweets"], "retweet_id != 0": ["x", "{user[name]}", "retweets" ], "" : ["x", "{user[name]}" ] }, "postprocessors":[ {"name": "metadata", "event": "post", "filename": "twitter_{author[name]}_{tweet_id}_main.json"} ] } } }
In 2. I have:
My gallery-dl.conf looks like:
`{
"extractor":
{
"base-directory": "./gallery-dl/",
"parent-directory": false,
"postprocessors": null,
"archive": null,
"cookies": null,
"cookies-update": true,
"proxy": null,
"skip": true,
}`
Downloading an X.com account into 2. does not yield a publish date within the filename.
Do I just need to move the config.json into folder 2.? And likewise, would I have this line as such:
"cookies": ["C:\Users\redacted\gallery-dl\x.com_cookies.txt"],
For the record, originally I had my cookies file in location 1. but I got an error, so corrected it by moving that into the folder. Likewise, I was running into errors when I had my Cookies text file path in the location below, AND when I tried to say 'vivaldi' for my browser cookies to be used instead. So...
Right now, I scrape an X.com account with the command:
C:\Users\redacted\gallery-dl>gallery-dl --cookies x.com_cookies.txt URL
But I'd like not to have to include the --cookies part.
**Without moving the config.json file to folder 2. I receive the error:
C:\Users\redacted\gallery-dl>gallery-dl --cookies x.com_cookies.txt https://x.com/redacted [config][error] JSONDecodeError when loading 'C:\Users\redacted\AppData\Roaming\gallery-dl\config.json': Invalid \escape: line 3 column 24 (char 43)
When I move the config.json file to folder 2., having installed the above line in the cookies section, and try it out, I get the following error:
C:\Users\redaced\gallery-dl>gallery-dl https://x.com/redacted [config][error] JSONDecodeError when loading 'C:\Users\redacted\gallery-dl\config.json': Invalid \escape: line 3 column 24 (char 43) [twitter][error] AuthorizationError: Login required
**So I will be undoing those changes...
Thank you for any assistance! And please remember: if you think something is common sense. For me, it probably isn't! Lol, so sorry!
The text was updated successfully, but these errors were encountered: