https://github.com/whatrocks/waybackgif
create a gif of chronological screenshots from any website on Wayback Machine
https://github.com/whatrocks/waybackgif
selenium selenium-webdriver wayback-machine
Last synced: about 1 year ago
JSON representation
create a gif of chronological screenshots from any website on Wayback Machine
- Host: GitHub
- URL: https://github.com/whatrocks/waybackgif
- Owner: whatrocks
- License: mit
- Created: 2023-02-01T16:56:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-02T01:20:11.000Z (over 3 years ago)
- Last Synced: 2025-01-08T20:51:50.406Z (over 1 year ago)
- Topics: selenium, selenium-webdriver, wayback-machine
- Language: Python
- Homepage:
- Size: 19.4 MB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# waybackgif
create a gif of chronological screenshots from any website on Wayback Machine
## Initial setup
```bash
python -m venv .waybackgif
source .waybackgif/bin/activate
pip install -r requirements.txt
```
Install [Chrome driver](https://sites.google.com/chromium.org/driver/) to `~/tmp/chromedriver`
## How to run
```bash
python waybackgif.py http://amazon.com --start_year 1999 --end_year 2003
```
* `start_year` defaults to 2020
* `end_year` defaults to current year
Right now, the code is also only storing 1 image per year, but you can remove this filtering if you want! Also it's not checking to prevent you from doing start year after end year. C'mon.
## Examples
Annual snapshot of apple.com (1996 - 2023)

Annual snapshot of stripe.com (2009 - 2023)

## Tips
Clean up snapshots:
```bash
rm snapshot*.png
```
Reduce file size of gif:
```bash
gifsicle -i original.gif -O3 --colors 256 -o optimized.gif
```