From cb0fc55c8b7c6211145459348c651b146107dd1e Mon Sep 17 00:00:00 2001 From: jeancf Date: Fri, 14 Jul 2023 20:21:59 +0200 Subject: [PATCH] Remove unused function --- twoot.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/twoot.py b/twoot.py index ebd4571..f4a29eb 100755 --- a/twoot.py +++ b/twoot.py @@ -52,22 +52,6 @@ USER_AGENTS = [ 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Vivaldi/6.1.3035.84', ] -""" -Temporary mitigation for unability to parse threads. Skip tweets that are part of a thread -""" -def has_class_timeline_item_but_not_thread(tag): - if tag.has_attr('class'): - classes = tag['class'] - if 'timeline-item' in classes and 'thread' not in classes: - return True - elif 'timeline-item' in classes and 'thread' in classes: - logging.warning('Tweet is part of a thread which are a new nitter feature that is not handled yet. Skipping') - return False - else: - return False - else: - return False - def build_config(args): """