Fix issue with query parameters by using urllib

pull/16/head
Logan Williams 2022-02-25 15:29:56 +01:00
rodzic 6a62c5798c
commit 09dc5b5b81
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -17,7 +17,7 @@ class TwitterArchiver(Archiver):
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36'
}
tweet_id = url.split('/')
tweet_id = urlparse(url).path.split('/')
if 'status' in tweet_id:
i = tweet_id.index('status')
tweet_id = tweet_id[i+1]