Skip to content
This repository has been archived by the owner on Dec 28, 2020. It is now read-only.

palewire/pastpages2gif

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
                  _                                 ___          _  __ 
                 | |                               |__ \        (_)/ _|
  _ __   __ _ ___| |_ _ __   __ _  __ _  ___  ___     ) |   __ _ _| |_ 
 | '_ \ / _` / __| __| '_ \ / _` |/ _` |/ _ \/ __|   / /   / _` | |  _|
 | |_) | (_| \__ \ |_| |_) | (_| | (_| |  __/\__ \  / /_  | (_| | | |  
 | .__/ \__,_|___/\__| .__/ \__,_|\__, |\___||___/ |____|  \__, |_|_|  
 | |                 | |           __/ |                    __/ |      
 |_|                 |_|          |___/                    |___/       

Create an animated GIF from the PastPages news homepage archive. An experiment with the PastPages API.

Examples

Start with something simple

import pastpages2gif
from datetime import datetime

pastpages2gif.get_site(
    "./bbc.gif",
    "bbc",
    datetime(2012, 12, 31, 18, 0, 0),
    datetime(2013, 1, 1, 6, 0, 0),
    verbose=True
)

BBC Fiscal Cliff

Now with timezones

import pytz
import pastpages2gif
from datetime import datetime

pastpages2gif.get_site(
    "./boston-bombing.gif",
    "bostoncom",
    datetime(2013, 4, 15, 11, 0, 0).replace(tzinfo=pytz.timezone("US/Eastern")),
    datetime(2013, 4, 17, 11, 0, 0).replace(tzinfo=pytz.timezone("US/Eastern")),
    verbose=True
)

Boston Bombing

Now with custom speed and size

import pytz
import pastpages2gif
from datetime import datetime

pastpages2gif.get_site(
    "./drudge-report.gif",
    "drudge-report",
    datetime(2012, 11, 6, 4, 0, 0).replace(tzinfo=pytz.timezone("US/Eastern")),
    datetime(2012, 11, 7, 4, 0, 0).replace(tzinfo=pytz.timezone("US/Eastern")),
    duration=1.0,
    max_width=900,
    max_height=2000,
    verbose=True
)

Four more tears

About

Create an animated GIF from the PastPages news homepage archive

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages