Closed specu closed 1 year ago
I think Imgur changed how/where they put the JSON string containing the image list in their album pages.
I was able to make the script work again by changing the following in imgur_downloader/imgurdownloader.py
:
search = re.search('(item:.*?};)', html, flags=re.DOTALL)
to:
search = re.search('image *: *{.*', html)
and a few lines later:
json_search = json.loads(search)
to:
json_search = json.loads(search+'}')
The second change is necessary because my new regex apparently ends up causing the omission of the final curly brace necessary to make it a valid JSON string. And I'm lazy.
This is not thoroughly tested (I used it on exactly one gallery). But you might want to try that. I'd make a proper patch file, but my local version has other edits (for cookie authentication and such) and I just wanted to throw my answer out there before i went to bed.
gallery-dl supports downloading from the variety of links this project supports. I'm going to archive this repo.
results in
version: imgur-downloader==0.2.2