From 29c74576449a018b286e9368d355daaabc44b968 Mon Sep 17 00:00:00 2001 From: jeancf Date: Thu, 13 Jul 2023 13:32:38 +0200 Subject: [PATCH] Add some log messages --- twoot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/twoot.py b/twoot.py index 0fe6404..0ea13ba 100755 --- a/twoot.py +++ b/twoot.py @@ -201,6 +201,7 @@ Only used by `get_timeline()`. :return: List of tweets from the thread """ def _get_rest_of_thread(session, headers, url): + logging.debug("Downloading tweets in thread from separate page") # Download page with thread try: thread_page = session.get(url, headers=headers, timeout=HTTPS_REQ_TIMEOUT) @@ -678,6 +679,7 @@ def process_attachments(nitter_url, attachments_container, status_id, author_acc vid_class = attachments_container.find('div', class_='video-container') if vid_class is not None: if TOML['options']['upload_videos']: + logging.debug("downloading video from twitter") import youtube_dl video_path = f"{author_account}/status/{status_id}"