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'])
Metadata
Release files for vine-wayback 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vine_wayback-0.0.6.tar.gz | 4.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vine_wayback-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.3 kB
Release files / vine_wayback-0.0.6.tar.gz
| Download URL | vine_wayback-0.0.6.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
07caeb6e45cf7913911d4c1a4f0fe5c8ce71fa26b4e523a17fce0b60459ee5bf
|
|
BLAKE2b-256 checksum How to use checksums |
e8e18a854789a427ab2094937eacab70911f9dc9d81242c7c64d4988d97dfa57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.0
|
Release files / vine_wayback-0.0.6-py3-none-any.whl
| Download URL | vine_wayback-0.0.6-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c4e0d0502599660d877a8f31481fa3877afeb1a0242f1ef4f388ad31a7d2e3bb
|
|
BLAKE2b-256 checksum How to use checksums |
339245b0e0490507bc873844bb140599e3ab8cd67b9f62534d5827a90be0fb4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.0
|