mirror of
https://github.com/bellingcat/snscrape.git
synced 2026-06-11 20:08:29 +03:00
change fullUrl to use 'orig' instead of 'large'
Changing fullUrl from '&name=large' to '&name=orig' since large is capped at half the resolution of orig which may not be ideal for scraping/archiving. Large images are 2048px x 1365px Original images are up to 4096px × 2730px Alternatively one could add largeUrl as an alternative to download the Large image and utillze fullUrl as above to download the original image for those that do wish to save either versions, but I feel there is no reason for saving the middle-resolution image.
This commit is contained in:
@@ -957,7 +957,7 @@ class _TwitterAPIScraper(snscrape.base.Scraper):
|
||||
return
|
||||
mKwargs = {
|
||||
'previewUrl': f'{baseUrl}?format={format}&name=small',
|
||||
'fullUrl': f'{baseUrl}?format={format}&name=large',
|
||||
'fullUrl': f'{baseUrl}?format={format}&name=orig',
|
||||
}
|
||||
if medium.get('ext_alt_text'):
|
||||
mKwargs['altText'] = medium['ext_alt_text']
|
||||
|
||||
Reference in New Issue
Block a user