Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
How should I convert gallery urls to iterables of image urls?
Post Flair (click to view more posts with a particular flair)
Post Body

So, I’ve been having a go at using the Reddit api praw and I’ve been able to download images for posts that are a link to a single image, but for gallery posts, I’m having trouble.

Gallery posts (posts with multiple images) have a link to a html page instead of an image. When opened locally, the page doesn’t seem to work at all, but when the gallery link is opened in a browser, it basically takes you to the post.

The html file seems too big to read manually, and I couldn’t find any image links by searching, so I’m guessing I’ll have to send more requests based on the content of the gallery html page to get the image links, but I’m still not sure what to look for in the gallery html file.

How should I get the images or image urls using these gallery files?

Author
Account Strength
100%
Account Age
6 years
Verified Email
Yes
Verified Flair
No
Total Karma
28,497
Link Karma
13,862
Comment Karma
13,612
Profile updated: 2 days ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
2 years ago