bellingcat / vk-url-scraper

Scrape VK URLs to fetch info and media - python API or command line tool.
https://pypi.org/project/vk-url-scraper/
MIT License
42 stars 6 forks source link

Download Original Image From Wall Post #13

Closed mindjek07 closed 6 months ago

mindjek07 commented 2 years ago

🚀 The feature, motivation and pitch

by default script downloads thumbnail images.

how to download the original image instead of the thumbnail from the wall post

Alternatives

No response

Additional context

No response

mindjek07 commented 2 years ago

oh I just have to change (attachment["sizes"][-5]["url"])

msramalho commented 2 years ago

Hi @mindjek07 can you provide an example wall URL? We get the [-1] index corresponding to the last url which should contain the highest quality, but I can test with provided examples for edge cases.

mindjek07 commented 2 years ago

log.txt

Most of the time photo "type": "w", is the Original file but not always.

https://dev.vk.com/reference/objects/photo-sizes