From d8ee33aa344a9a8844a4c7c6c7d48953d55dcd39 Mon Sep 17 00:00:00 2001 From: Evil0ctal Date: Sat, 20 Nov 2021 14:01:17 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=B7=20Fix=20the=20error=20logs=20downl?= =?UTF-8?q?oad=20issues?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TikTok_EN.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/TikTok_EN.py b/TikTok_EN.py index 0774af7..febb9f2 100644 --- a/TikTok_EN.py +++ b/TikTok_EN.py @@ -203,12 +203,21 @@ def api_document_pop_window(): put_link('[English document]', 'https://github.com/Evil0ctal/TikTokDownloader_PyWebIO/blob/main/README-EN.md#%EF%B8%8Fapi-usage', new_window=True) +def error_log_popup_window(): + with popup('Error logs'): + content = open(r'./logs.txt', 'rb').read() + put_file('Download logs.txt', content=content) + with open('./logs.txt', 'r') as f: + content = f.read() + put_text(str(content)) + + def about_popup_window(): with popup('More information'): put_html('

⚠️About parsing failure

') put_text('It is currently known that a large number of visits to the TikTok API in a short period of time may trigger its verification code.') put_text('If the analysis fails several times, please wait for a while and then try again.') - put_link("Download the error log of this site", 'http://18.144.82.183:8888/down/tvoFwscxmQkE') + put_button("Error logs", onclick=lambda: error_log_popup_window(), link_style=True, small=True) put_html('
') put_html('

🌐Video/Atlas batch download

') put_markdown('You can use tools such as [IDM](https://www.internetdownloadmanager.com/) to sniff the links to the results page.')