From d06fa4a4ff59647d1381254e3357725279862ffa Mon Sep 17 00:00:00 2001 From: yzqzss Date: Tue, 9 Apr 2024 21:07:00 +0800 Subject: [PATCH] feat: specify `doku_url` by using `#force` hash --- dokuWikiDumper/dump/dokuDumper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dokuWikiDumper/dump/dokuDumper.py b/dokuWikiDumper/dump/dokuDumper.py index 82d6670..b5c7849 100644 --- a/dokuWikiDumper/dump/dokuDumper.py +++ b/dokuWikiDumper/dump/dokuDumper.py @@ -210,7 +210,8 @@ def print_request(r: requests.Response, *args, **kwargs): session_monkey.hijack() std_url = standardizeUrl(url_input) - doku_url = getDokuUrl(std_url, session=session) + # use #force to skip 30X redirection detection + doku_url = getDokuUrl(std_url, session=session) if not std_url.endswith('#force') else std_url[:-len('#force')] avoidSites(doku_url, session=session)