mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
11.39k stars 930 forks source link

[Patreon] Not allowed to view post #5356

Closed 524144 closed 6 months ago

524144 commented 6 months ago

Lately I can't download post from Patreon anymore `C:\Users\DA>cd C:\Users\DA\gallery-dl

C:\Users\DA\gallery-dl>.\gallery-dl.exe https://www.patreon.com/posts/(postid) [config][error] JSONDecodeError when loading 'C:\Users\DA\gallery-dl\gallery-dl.conf': Extra data: line 2 column 16 (char 16) [patreon][warning] Not allowed to view post 100614952 [patreon][info] No results for https://www.patreon.com/posts/(postid)`

My version is C:\Users\DA\gallery-dl>gallery-dl -v [config][error] JSONDecodeError when loading 'C:\Users\DA\gallery-dl\gallery-dl.conf': Extra data: line 2 column 16 (char 16) [gallery-dl][debug] Version 1.26.8 - Executable [gallery-dl][debug] Python 3.8.10 - Windows-10-10.0.22631 [gallery-dl][debug] requests 2.31.0 - urllib3 2.1.0 [gallery-dl][debug] Configuration Files ['%APPDATA%\\gallery-dl\\config.json', '%USERPROFILE%\\gallery-dl\\config.json'] usage: gallery-dl [OPTION]... URL... gallery-dl: error: The following arguments are required: URL Use 'gallery-dl --help' to get a list of all options.

Thanks

Hrxn commented 6 months ago

[config][error] JSONDecodeError when loading 'C:\Users\DA\gallery-dl\gallery-dl.conf':

There's a syntax error in your config file, therefore it can't be loaded.

524144 commented 6 months ago

[config][error] JSONDecodeError when loading 'C:\Users\DA\gallery-dl\gallery-dl.conf':

There's a syntax error in your config file, therefore it can't be loaded.

How to fix that? this is what my config file looks like { "extractor": { "patreon": { "cookies": { "session_id": "xxxxx" }, "filename":"{date:%Y-%m-%d}_{id}_{num}_{filename[0:50]}.{extension}" } } }

Hrxn commented 6 months ago

That is the actual file? In one line? Are you sure?

{
    "extractor":
    {
        "patreon":
        {
            "cookies":
            {
                "session_id":"xxxxx"
            },
            "filename":"{date:%Y-%m-%d}_{id}_{num}_{filename[0:50]}.{extension}"
        }
    }
}

Is correct, at least, in terms of JSON syntax.

524144 commented 6 months ago

That is the actual file? In one line? Are you sure?

{
    "extractor":
    {
        "patreon":
        {
            "cookies":
            {
                "session_id":"xxxxx"
            },
            "filename":"{date:%Y-%m-%d}_{id}_{num}_{filename[0:50]}.{extension}"
        }
    }
}

Is correct, at least, in terms of JSON syntax.

well, that's what I have in the "config.json" file, but if you are looking for "gallery-dl.conf", then here's the content:

"extractor": { "patreon": { "cookies": ""C:\\Users\\DA\\gallery-dl\\patreon.com_cookies.txt" } },

(I don't know how to space it like what you did)

Hrxn commented 6 months ago

You can just copy and paste it.. in the upper right hand corner of the greyish background box is a button, click it and the content will be copied into your system clipboard.

That second line would be wrong JSON syntax, by the way.

Why even use two config files in your scenario here? Unnecessary, simply put the correct JSON text into the normal config file like %HOME%\gallery-dl.conf

524144 commented 6 months ago

You can just copy and paste it.. in the upper right hand corner of the greyish background box is a button, click it and the content will be copied into your system clipboard.

That second line would be wrong JSON syntax, by the way.

Why even use two config files in your scenario here? Unnecessary, simply put the correct JSON text into the normal config file like %HOME%\gallery-dl.conf

well, from the homepage of gallery-dl, under Location it says:

Locations gallery-dl searches for configuration files in the following places:

Windows: %APPDATA%\gallery-dl\config.json %USERPROFILE%\gallery-dl\config.json %USERPROFILE%\gallery-dl.conf

so I thought is normal to have config,json and gallery-dl.conf under the same folder...?

Hrxn commented 6 months ago

Nope... you only need one of these locations. gallery-dl checks them all and tries to load the config from there, but you only need one.

524144 commented 6 months ago
{date:%Y-%m-%d}_{id}_{num}_{filename[0:50]}.{extension}"

I need help.. so I deleted the config and gallery-dl.conf file and plan to do a better one (?) I download the gallery-dl.conf file under documentation from home page. I'm trying to set for my twitter and patreon:

`{ "extractor": { "base-directory": "./gallery-dl/", "parent-directory": false, "postprocessors": null, "archive": null, "cookies": null, "cookies-update": true, "proxy": null, "skip": true,

    "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36",
    "retries": 4,
    "timeout": 30.0,
    "verify": true,
    "fallback": true,

    "sleep": 0,
    "sleep-request": 0,
    "sleep-extractor": 0,

    "path-restrict": "auto",
    "path-replace": "_",
    "path-remove": "\\u0000-\\u001f\\u007f",
    "path-strip": "auto",
    "path-extended": true,

    "extension-map": {
        "jpeg": "jpg",
        "jpe" : "jpg",
        "jfif": "jpg",
        "jif" : "jpg",
        "jfi" : "jpg"
    },

    "artstation":
    {
        "external": false,
        "pro-first": true
    },
    "aryion":
    {
        "username": null,
        "password": null,
        "recursive": true
    },
    "bbc": {
        "width": 1920
    },
    "blogger":
    {
        "videos": true
    },
    "cyberdrop":
    {
        "domain": null
    },
    "danbooru":
    {
        "username": null,
        "password": null,
        "external": false,
        "metadata": false,
        "ugoira": false
    },
    "derpibooru":
    {
        "api-key": null,
        "filter": 56027
    },
    "deviantart":
    {
        "client-id": null,
        "client-secret": null,
        "refresh-token": null,

        "auto-watch": false,
        "auto-unwatch": false,
        "comments": false,
        "extra": false,
        "flat": true,
        "folders": false,
        "group": true,
        "include": "gallery",
        "journals": "html",
        "jwt": false,
        "mature": true,
        "metadata": false,
        "original": true,
        "pagination": "api",
        "public": true,
        "quality": 100,
        "wait-min": 0
    },
    "e621":
    {
        "username": null,
        "password": null
    },
    "exhentai":
    {
        "username": null,
        "password": null,
        "domain": "auto",
        "limits": true,
        "metadata": false,
        "original": true,
        "sleep-request": 5.0
    },
    "flickr":
    {
        "exif": false,
        "metadata": false,
        "size-max": null,
        "videos": true
    },
    "furaffinity":
    {
        "descriptions": "text",
        "external": false,
        "include": "gallery",
        "layout": "auto"
    },
    "gelbooru":
    {
        "api-key": null,
        "user-id": null
    },
    "gofile": {
        "api-token": null,
        "website-token": null
    },
    "hentaifoundry":
    {
        "include": "pictures"
    },
    "hitomi":
    {
        "format": "webp",
        "metadata": false
    },
    "idolcomplex":
    {
        "username": null,
        "password": null,
        "sleep-request": 5.0
    },
    "imagechest": {
        "access-token": null
    },
    "imgbb":
    {
        "username": null,
        "password": null
    },
    "imgur":
    {
        "mp4": true
    },
    "inkbunny":
    {
        "username": null,
        "password": null,
        "orderby": "create_datetime"
    },
    "instagram":
    {
        "api": "rest",
        "cookies": null,
        "include": "posts",
        "order-files": "asc",
        "order-posts": "asc",
        "previews": false,
        "sleep-request": [6.0, 12.0],
        "videos": true
    },
    "khinsider":
    {
        "format": "mp3"
    },
    "luscious":
    {
        "gif": false
    },
    "mangadex":
    {
        "api-server": "https://api.mangadex.org",
        "api-parameters": null,
        "lang": null,
        "ratings": ["safe", "suggestive", "erotica", "pornographic"]
    },
    "mangoxo":
    {
        "username": null,
        "password": null
    },
    "misskey": {
        "access-token": null,
        "renotes": false,
        "replies": true
    },
    "newgrounds":
    {
        "username": null,
        "password": null,
        "flash": true,
        "format": "original",
        "include": "art"
    },
    "nijie":
    {
        "username": null,
        "password": null,
        "include": "illustration,doujin"
    },
    "nitter": {
        "quoted": false,
        "retweets": false,
        "videos": true
    },
    "oauth":
    {
        "browser": true,
        "cache": true,
        "host": "localhost",
        "port": 6414
    },
    "paheal":
    {
        "metadata": false
    },
"patreon":
{
    "cookies": 
    {
    “session_id": "xxxxx"
},
    "pillowfort":
    {
        "external": false,
        "inline": true,
        "reblogs": false
    },
    "pinterest":
    {
        "domain": "auto",
        "sections": true,
        "videos": true
    },
    "pixiv":
    {
        "refresh-token": null,
        "include": "artworks",
        "embeds": false,
        "metadata": false,
        "metadata-bookmark": false,
        "tags": "japanese",
        "ugoira": true
    },
    "reactor":
    {
        "gif": false,
        "sleep-request": 5.0
    },
    "reddit":
    {
        "client-id": null,
        "user-agent": null,
        "refresh-token": null,
        "comments": 0,
        "morecomments": false,
        "date-min": 0,
        "date-max": 253402210800,
        "date-format": "%Y-%m-%dT%H:%M:%S",
        "id-min": null,
        "id-max": null,
        "recursion": 0,
        "videos": true
    },
    "redgifs":
    {
        "format": ["hd", "sd", "gif"]
    },
    "sankaku":
    {
        "username": null,
        "password": null,
        "refresh": false
    },
    "sankakucomplex":
    {
        "embeds": false,
        "videos": true
    },
    "skeb":
    {
        "article": false,
        "filters": null,
        "sent-requests": false,
        "thumbnails": false
    },
    "smugmug":
    {
        "videos": true
    },
    "seiga":
    {
        "username": null,
        "password": null
    },
    "subscribestar":
    {
        "username": null,
        "password": null
    },
    "tsumino":
    {
        "username": null,
        "password": null
    },
    "tumblr":
    {
        "avatar": false,
        "external": false,
        "inline": true,
        "posts": "all",
        "offset": 0,
        "original": true,
        "reblogs": true
    },
    "twitter":
    {
        "username": "xxxxx",
        "password": "xxxx",
        "cards": false,
        "conversations": false,
        "pinned": false,
        "quoted": false,
        "replies": true,
        "retweets": false,
        "strategy": null,
        "text-tweets": false,
        "twitpic": false,
        "unique": true,
        "users": "user",
        "videos": true
    },
    "unsplash":
    {
        "format": "raw"
    },
    "vsco":
    {
        "videos": true
    },
    "wallhaven":
    {
        "api-key": null,
        "metadata": false,
        "include": "uploads"
    },
    "weasyl":
    {
        "api-key": null,
        "metadata": false
    },
    "weibo":
    {
        "livephoto": true,
        "retweets": true,
        "videos": true
    },
    "ytdl":
    {
        "enabled": false,
        "format": null,
        "generic": true,
        "logging": true,
        "module": null,
        "raw-options": null
    },
    "zerochan":
    {
        "username": null,
        "password": null,
        "metadata": false
    },
    "booru":
    {
        "tags": false,
        "notes": false
    }
},

"downloader":
{
    "filesize-min": null,
    "filesize-max": null,
    "mtime": true,
    "part": true,
    "part-directory": null,
    "progress": 3.0,
    "rate": null,
    "retries": 4,
    "timeout": 30.0,
    "verify": true,

    "http":
    {
        "adjust-extensions": true,
        "chunk-size": 32768,
        "headers": null,
        "validate": true
    },

    "ytdl":
    {
        "format": null,
        "forward-cookies": false,
        "logging": true,
        "module": null,
        "outtmpl": null,
        "raw-options": null
    }
},

"output":
{
    "mode": "auto",
    "progress": true,
    "shorten": true,
    "ansi": false,
    "colors": {
        "success": "1;32",
        "skip"   : "2"
    },
    "skip": true,
    "log": "[{name}][{levelname}] {message}",
    "logfile": null,
    "unsupportedfile": null
},

"netrc": false

}`

the first question is, can I just delete everything that I don't need? the second question is that, after I run gallery-dl, even though I have set my session id for patreon and my username/password for twitter :

C:\Users\DA>gallery-dl https://www.patreon.com/posts/XXXX [patreon][warning] Cookie 'session_id' has expired [patreon][warning] no 'session_id' cookie set [patreon][error] Unable to extract bootstrap data C:\Users\DA>gallery-dl https://twitter.com/XXXX [twitter][error] AuthorizationError: Login required Why is still asking me for ID and login authorization? where did I do wrong? Thanks......

Hrxn commented 6 months ago

the first question is, can I just delete everything that I don't need?

Yes, of course.

Should be working, I think. For any error messages etc., please post the full output with gallery-dl -v <Your URL> here

Here's a somewhat minimal but working config with the most essential options ("base-directory", "archive"), with Twitter and Patreon, plus a log file option etc.

Edit: And "user-agent" which can be important (depends on the site) together with cookies for auth. Simply set this to your browser where you are signed in, i.e. the browser which is also the source of the cookies.


As a starting point for you:

{
    "extractor":
    {
        "base-directory": "D:/Downloads/Galleries/",
        "archive": "D:/Downloads/gallery-dl_archive.sqlite3",
        "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36",
        "skip": true,

        "patreon":
        {
            "cookies":
            {
                "session_id": "XXXX"
            },
            "filename":"{date:%Y-%m-%d}_{id}_{num}_{filename[0:50]}.{extension}"
        },
        "twitter":
        {
            "filename": "{author['name']!t}.{date:Olocal/%Y-%m-%d-%H%M%S}.{tweet_id}{filename[2:8]|''!t:?.//}{content[:220]!t:?.//R.//}{count:?.//>02}.{extension}",
            "pinned": true,
            "quoted": true,
            "replies": true,
            "retweets": true,
            "text-tweets": false,
            "videos": true,
            "tweet-endpoint": "detail",
            "include": ["timeline", "media", "tweets", "background", "avatar"],
            "cookies": {
                "auth_token": "XXXX",
                "ct0": "XXXX"
            }
        },
        "ytdl":
        {
            "module": "yt_dlp",
            "raw-options": {
                "no_color": true,
                "verbose": false,
                "quiet": false
            }
        }
    },
    "downloader":
    {
        "ytdl":
        {
            "module": "yt_dlp",
            "forward-cookies": true,
            "raw-options": {
                "no_color": true,
                "verbose": false,
                "quiet": false
            }
        },
        "progress": 8.0,
        "retries": 4,
        "timeout": 32.0,
        "mtime": true
    },
    "output":
    {
        "shorten": "eaw",
        "ansi": true,
        "logfile": {
            "path": "D:/Downloads/gallery-dl_log.txt",
            "mode": "a",
            "level": "debug"
        }
    }
}
524144 commented 6 months ago

the first question is, can I just delete everything that I don't need?

Yes, of course.

Should be working, I think. For any error messages etc., please post the full output with gallery-dl -v <Your URL> here

Here's a somewhat minimal but working config with the most essential options ("base-directory", "archive"), with Twitter and Patreon, plus a log file option etc.

Edit: And "user-agent" which can be important (depends on the site) together with cookies for auth. Simply set this to your browser where you are signed in, i.e. the browser which is also the source of the cookies.

As a starting point for you:

{
    "extractor":
    {
        "base-directory": "D:/Downloads/Galleries/",
        "archive": "D:/Downloads/gallery-dl_archive.sqlite3",
        "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36",
        "skip": true,

        "patreon":
        {
            "cookies":
            {
                "session_id": "XXXX"
            },
            "filename":"{date:%Y-%m-%d}_{id}_{num}_{filename[0:50]}.{extension}"
        },
        "twitter":
        {
            "filename": "{author['name']!t}.{date:Olocal/%Y-%m-%d-%H%M%S}.{tweet_id}{filename[2:8]|''!t:?.//}{content[:220]!t:?.//R.//}{count:?.//>02}.{extension}",
            "pinned": true,
            "quoted": true,
            "replies": true,
            "retweets": true,
            "text-tweets": false,
            "videos": true,
            "tweet-endpoint": "detail",
            "include": ["timeline", "media", "tweets", "background", "avatar"],
            "cookies": {
                "auth_token": "XXXX",
                "ct0": "XXXX"
            }
        },
        "ytdl":
        {
            "module": "yt_dlp",
            "raw-options": {
                "no_color": true,
                "verbose": false,
                "quiet": false
            }
        }
    },
    "downloader":
    {
        "ytdl":
        {
            "module": "yt_dlp",
            "forward-cookies": true,
            "raw-options": {
                "no_color": true,
                "verbose": false,
                "quiet": false
            }
        },
        "progress": 8.0,
        "retries": 4,
        "timeout": 32.0,
        "mtime": true
    },
    "output":
    {
        "shorten": "eaw",
        "ansi": true,
        "logfile": {
            "path": "D:/Downloads/gallery-dl_log.txt",
            "mode": "a",
            "level": "debug"
        }
    }
}

Morning, sorry I just got up...... I have done the replacement of my .conf file (session id for patreon and auth token/cot0 filled in), and here's the error message when running it:

for patreon:

C:\Users\DA>gallery-dl -v https://www.patreon.com/posts/reserved-access-9503558 [gallery-dl][debug] Version 1.26.4 [gallery-dl][debug] Python 3.11.2 - Windows-10-10.0.22631-SP0 [gallery-dl][debug] requests 2.31.0 - urllib3 2.0.3 [gallery-dl][debug] Configuration Files [] [gallery-dl][debug] Starting DownloadJob for 'https://www.patreon.com/posts/reserved-access-9503558' [patreon][debug] Using PatreonPostExtractor for 'https://www.patreon.com/posts/reserved-access-9503558' [patreon][debug] TLS 1.2 disabled. [patreon][warning] no 'session_id' cookie set [urllib3.connectionpool][debug] Starting new HTTPS connection (1): www.patreon.com:443 [urllib3.connectionpool][debug] https://www.patreon.com:443 "GET /posts/reserved-access-9503558 HTTP/1.1" 200 None [patreon][error] Unable to extract bootstrap data

for twitter: it seems like I can download specific single post

`C:\Users\DA>gallery-dl -v https://twitter.com/AMAZlNGNATURE/status/1770355870498431340 [gallery-dl][debug] Version 1.26.4 [gallery-dl][debug] Python 3.11.2 - Windows-10-10.0.22631-SP0 [gallery-dl][debug] requests 2.31.0 - urllib3 2.0.3 [gallery-dl][debug] Configuration Files [] [gallery-dl][debug] Starting DownloadJob for 'https://twitter.com/AMAZlNGNATURE/status/1770355870498431340' [twitter][debug] Using TwitterTweetExtractor for 'https://twitter.com/AMAZlNGNATURE/status/1770355870498431340' [urllib3.connectionpool][debug] Starting new HTTPS connection (1): twitter.com:443 [urllib3.connectionpool][debug] https://twitter.com:443 "GET /i/api/graphql/2ICDjqPd81tulZcYrtpTuQ/TweetResultByRestId?variables=%7B%22tweetId%22%3A%221770355870498431340%22%2C%22withCommunity%22%3Afalse%2C%22includePromotedContent%22%3Afalse%2C%22withVoice%22%3Afalse%7D&features=%7B%22creator_subscriptions_tweet_preview_api_enabled%22%3Atrue%2C%22tweetypie_unmention_optimization_enabled%22%3Atrue%2C%22responsive_web_edit_tweet_api_enabled%22%3Atrue%2C%22graphql_is_translatable_rweb_tweet_is_translatable_enabled%22%3Atrue%2C%22view_counts_everywhere_api_enabled%22%3Atrue%2C%22longform_notetweets_consumption_enabled%22%3Atrue%2C%22responsive_web_twitter_article_tweet_consumption_enabled%22%3Afalse%2C%22tweet_awards_web_tipping_enabled%22%3Afalse%2C%22freedom_of_speech_not_reach_fetch_enabled%22%3Atrue%2C%22standardized_nudges_misinfo%22%3Atrue%2C%22tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled%22%3Atrue%2C%22longform_notetweets_rich_text_read_enabled%22%3Atrue%2C%22longform_notetweets_inline_media_enabled%22%3Atrue%2C%22responsive_web_graphql_exclude_directive_enabled%22%3Atrue%2C%22verified_phone_label_enabled%22%3Afalse%2C%22responsive_web_media_download_video_enabled%22%3Afalse%2C%22responsive_web_graphql_skip_user_profile_image_extensions_enabled%22%3Afalse%2C%22responsive_web_graphql_timeline_navigation_enabled%22%3Atrue%2C%22responsive_web_enhance_cards_enabled%22%3Afalse%7D&fieldToggles=%7B%22withArticleRichContentState%22%3Afalse%7D HTTP/1.1" 200 1755 [urllib3.connectionpool][debug] Starting new HTTPS connection (1): video.twimg.com:443 [urllib3.connectionpool][debug] https://video.twimg.com:443 "GET /ext_tw_video/1770355851154337792/pu/vid/avc1/576x720/qaleMvugMqh3uIF7.mp4?tag=12 HTTP/1.1" 200 4102523

but when it comes to batch download someone's entire media, it gives AuthorizationError: Login required

C:\Users\DA>gallery-dl -v https://twitter.com/TheFigen_/media [gallery-dl][debug] Version 1.26.4 [gallery-dl][debug] Python 3.11.2 - Windows-10-10.0.22631-SP0 [gallery-dl][debug] requests 2.31.0 - urllib3 2.0.3 [gallery-dl][debug] Configuration Files [] [gallery-dl][debug] Starting DownloadJob for 'https://twitter.com/TheFigen_/media' [twitter][debug] Using TwitterMediaExtractor for 'https://twitter.com/TheFigen_/media' [urllib3.connectionpool][debug] Starting new HTTPS connection (1): twitter.com:443 [urllib3.connectionpool][debug] https://twitter.com:443 "GET /i/api/graphql/XA6F1nJELYg65hxOC2Ekmg/UserByScreenName?variables=%7B%22screen_name%22%3A%22TheFigen_%22%2C%22withSafetyModeUserFields%22%3Atrue%7D&features=%7B%22hidden_profile_likes_enabled%22%3Afalse%2C%22responsive_web_graphql_exclude_directive_enabled%22%3Atrue%2C%22verified_phone_label_enabled%22%3Afalse%2C%22subscriptions_verification_info_verified_since_enabled%22%3Atrue%2C%22highlights_tweets_tab_ui_enabled%22%3Atrue%2C%22creator_subscriptions_tweet_preview_api_enabled%22%3Atrue%2C%22responsive_web_graphql_skip_user_profile_image_extensions_enabled%22%3Afalse%2C%22responsive_web_graphql_timeline_navigation_enabled%22%3Atrue%7D HTTP/1.1" 200 1092 [urllib3.connectionpool][debug] https://twitter.com:443 "GET /i/api/graphql/lo965xQZdN2-eSM1Jc-W_A/UserMedia?variables=%7B%22userId%22%3A%221562038858988064768%22%2C%22count%22%3A100%2C%22includePromotedContent%22%3Afalse%2C%22withClientEventToken%22%3Afalse%2C%22withBirdwatchNotes%22%3Afalse%2C%22withVoice%22%3Atrue%2C%22withV2Timeline%22%3Atrue%7D&features=%7B%22rweb_lists_timeline_redesign_enabled%22%3Atrue%2C%22responsive_web_graphql_exclude_directive_enabled%22%3Atrue%2C%22verified_phone_label_enabled%22%3Afalse%2C%22creator_subscriptions_tweet_preview_api_enabled%22%3Atrue%2C%22responsive_web_graphql_timeline_navigation_enabled%22%3Atrue%2C%22responsive_web_graphql_skip_user_profile_image_extensions_enabled%22%3Afalse%2C%22tweetypie_unmention_optimization_enabled%22%3Atrue%2C%22responsive_web_edit_tweet_api_enabled%22%3Atrue%2C%22graphql_is_translatable_rweb_tweet_is_translatable_enabled%22%3Atrue%2C%22view_counts_everywhere_api_enabled%22%3Atrue%2C%22longform_notetweets_consumption_enabled%22%3Atrue%2C%22tweet_awards_web_tipping_enabled%22%3Afalse%2C%22freedom_of_speech_not_reach_fetch_enabled%22%3Atrue%2C%22standardized_nudges_misinfo%22%3Atrue%2C%22tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled%22%3Afalse%2C%22interactive_text_enabled%22%3Atrue%2C%22responsive_web_text_conversations_enabled%22%3Afalse%2C%22longform_notetweets_rich_text_read_enabled%22%3Atrue%2C%22longform_notetweets_inline_media_enabled%22%3Afalse%2C%22responsive_web_enhance_cards_enabled%22%3Afalse%7D HTTP/1.1" 404 0 [twitter][error] AuthorizationError: Login required

mikf commented 6 months ago

https://github.com/mikf/gallery-dl/issues/5356#issue-2196198320

[gallery-dl][debug] Version 1.26.8

https://github.com/mikf/gallery-dl/issues/5356#issuecomment-2009482183

[gallery-dl][debug] Version 1.26.4

I don't know how you managed this, but you are somehow using an older gallery-dl version which is the reason for the "[patreon][error] Unable to extract bootstrap data" error.

There's a similar situation going on in #5358.

edit:

[gallery-dl][debug] Python 3.8.10

[gallery-dl][debug] Python 3.11.2

You are using the executable and the pip version at the same time? Why?

edit2: And please do not quote the entire post you are replying to, especially when it's the post right before your reply. (Why are people doing this in the first place? I've seen this countless times before and it still doesn't make any sense.)

524144 commented 6 months ago

I don't know how you managed this, but you are somehow using an older gallery-dl version which is the reason for the "[patreon][error] Unable to extract bootstrap data" error.

Okay, I followed the post and update my gallery-dl to version 1.26.8. And there's a part I don't understand: Base on Hrxn,

Nope... you only need one of these locations. gallery-dl checks them all and tries to load the config from there, but you only need one.

C:\Users\DA>gallery-dl --verbose [gallery-dl][debug] Version 1.26.8 [gallery-dl][debug] Python 3.11.2 - Windows-10-10.0.22631-SP0 [gallery-dl][debug] requests 2.31.0 - urllib3 2.0.3 [gallery-dl][debug] Configuration Files [] usage: gallery-dl [OPTION]... URL... gallery-dl: error: The following arguments are required: URL Use 'gallery-dl --help' to get a list of all options.

Then why does gallery-dl still looking for the Configuration files? (and all the other errors)

You are using the executable and the pip version at the same time? Why?

That's a long story..... hard for me to explain. How do I fix this? just delete the executable?

edit2: And please do not quote the entire post you are replying to, especially when it's the post right before your reply. (Why are people doing this in the first place? I've seen this countless times before and it still doesn't make any sense.)

My apologies.....

524144 commented 6 months ago

okay, I recreated the config file and is working now!