Skip to main content

Fetch Vines from the Wayback Machine

Project description

vine_wayback

Tests

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vine_wayback-0.0.5.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vine_wayback-0.0.5-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file vine_wayback-0.0.5.tar.gz.

File metadata

  • Download URL: vine_wayback-0.0.5.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for vine_wayback-0.0.5.tar.gz
Algorithm Hash digest
SHA256 11ef1fd288b440c9e4d6c0aa80061ea0b9c76897877e973166c8320ad1f06df2
MD5 91747c8f961e3452740608d01b9ce6c7
BLAKE2b-256 0bb3b10dd13064c9e2165b8c35aeebba9e4d7e11bf2b9504e23a34e6e1286482

See more details on using hashes here.

File details

Details for the file vine_wayback-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: vine_wayback-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for vine_wayback-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3036a458c4bc12a4a902eac03a429ffcb74f15f2721118692bff66e3922a8c6d
MD5 a99dd9783a2003f6c0762c0bc7e8138a
BLAKE2b-256 e253767b64744960a28dff8b441cd394f1eaa75564792637bb916422fecd959f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page