kopia lustrzana https://github.com/bellingcat/auto-archiver
Fix issue with query parameters by using urllib
rodzic
6a62c5798c
commit
09dc5b5b81
|
@ -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]
|
||||
|
|
Ładowanie…
Reference in New Issue