Fetch Vines from the Wayback Machine
Project description
vine_wayback
vine_wayback tries to retrieve a Vine video and its metadata from the Wayback Machine. If the Vine can be found in the Wayback Machine it will be written to disk as an MP4, JSON and standalone HTML file which you can use to view the Vine.
Install
pip install vine_wayback
Run
When you install vine_wayback you should get the vine_wayback command line utility installed as well:
vine_wayback https://vine.co/v/iuKJ7JjF2Jt
💾 saved https://vine.co/v/iuKJ7JjF2Jt to /Users/edsu/Projects/vine-wayback/iuKJ7JjF2Jt
This will create a directory like:
iuKJ7JjF2Jt
├── index.html
├── iuKJ7JjF2Jt.json
└── iuKJ7JjF2Jt.mp4
Import
Maybe you want to make this part of a script that downloads a bunch of vines. You can use the download() function to download the Vine where you want to:
import vine_wayback
vine_wayback.download("https://vine.co/v/iuKJ7JjF2Jt", output_dir="my/dir", quiet=True)
Or you can work with the metadata and video directly:
import vine_wayback
vine = vine_wayback.vine("https://vine.co/v/iuKJ7JjF2Jt")
# print some of the metadata
print(vine['twitter:title'])
# save the video
open('media.mp4', 'wb').write(vine['video_raw'])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vine_wayback-0.0.6.tar.gz.
File metadata
- Download URL: vine_wayback-0.0.6.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07caeb6e45cf7913911d4c1a4f0fe5c8ce71fa26b4e523a17fce0b60459ee5bf
|
|
| MD5 |
beb368096c3fdb18eb2009386d34d23a
|
|
| BLAKE2b-256 |
e8e18a854789a427ab2094937eacab70911f9dc9d81242c7c64d4988d97dfa57
|
File details
Details for the file vine_wayback-0.0.6-py3-none-any.whl.
File metadata
- Download URL: vine_wayback-0.0.6-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4e0d0502599660d877a8f31481fa3877afeb1a0242f1ef4f388ad31a7d2e3bb
|
|
| MD5 |
4e7c100c957cdb009459d1201573e124
|
|
| BLAKE2b-256 |
339245b0e0490507bc873844bb140599e3ab8cd67b9f62534d5827a90be0fb4b
|