[go: up one dir, main page]

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

Create an animated GIF from the PastPages news homepage archive

Notifications You must be signed in to change notification settings

palewire/pastpages2gif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

                  _                                 ___          _  __ 
                 | |                               |__ \        (_)/ _|
  _ __   __ _ ___| |_ _ __   __ _  __ _  ___  ___     ) |   __ _ _| |_ 
 | '_ \ / _` / __| __| '_ \ / _` |/ _` |/ _ \/ __|   / /   / _` | |  _|
 | |_) | (_| \__ \ |_| |_) | (_| | (_| |  __/\__ \  / /_  | (_| | | |  
 | .__/ \__,_|___/\__| .__/ \__,_|\__, |\___||___/ |____|  \__, |_|_|  
 | |                 | |           __/ |                    __/ |      
 |_|                 |_|          |___/                    |___/       

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