Skip to main content

Retrieve Imgur's viral posts from a given date (it goes back years).

Project description

Imgur Scraper

Retrieve Imgur’s viral posts from a given date. No authentication required. Implemented using their frontend API.

Usage

>>> from imgur_scraper import get_viral_posts_from
>>> for post in get_viral_posts_from(date="12/31/15"):
>>>     print(post)
The most viral images from Wednesday, Dec 31 2015
{
        'title': 'Tire went flat overnight and decided to have a little fun',
        'url': 'https://imgur.com/gallery/SIQgS',
        'points': '15,893',
        'tags': 'funny'
}
… prints all 500 of them

Installation

pip install imgur-scraper

Python 3.6 is required

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imgur_scraper-0.1.1.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

imgur_scraper-0.1.1-py2.py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page