alexgisby / imgur-album-downloader

Python script/class to download an entire Imgur album in one go into a folder of your choice.
MIT License
340 stars 59 forks source link

script fails on an album #39

Open nikitavoloboev opened 6 years ago

nikitavoloboev commented 6 years ago

Running python imguralbum.py https://imgur.com/gallery/wfMp9 ~/Desktop gives me this error :

Error: URL must be a valid Imgur Album

How to use
=============

However the URL is correct and leads to an album. Not really sure why it fails.

Kaligule commented 6 years ago

That command works for me. I can't see why this would fail, are you using the latest version?

The only lines that can cause that error are these:

# Check the URL is actually imgur:
        match = re.match("(https?)\:\/\/(www\.)?(?:m\.)?imgur\.com/(a|gallery)/([a-zA-Z0-9]+)(#[0-9]+)?", album_url)
        if not match:
            raise ImgurAlbumException("URL must be a valid Imgur Album")
ghost commented 6 years ago

Not working for me either with the latest version

szero commented 6 years ago

Hello @nikitavoloboev , @Kaligule and @Coaggly please check my pull request and fork of this program: #26