snscrape icon indicating copy to clipboard operation
snscrape copied to clipboard

fix(vkontakte): update photo detection

Open hgrsd opened this issue 2 years ago • 1 comments

Photo scraping doesn't currently work for VKontakte, because data-photo-id seems no longer included in the anchor's attributes.

There is, however, and aria-label that starts with photo included in the attributes; we can use that to detect whether we are dealing with a photo. Doing so allows the existing logic to scrape the URLs again :).

This should close #471.

hgrsd avatar Jul 16 '22 17:07 hgrsd

@JustAnotherArchivist I took a stab at closing this issue - let me know what you think :)

hgrsd avatar Jul 16 '22 17:07 hgrsd

Thanks a lot, and apologies for the delay!

JustAnotherArchivist avatar Aug 21 '22 01:08 JustAnotherArchivist