Skip to main content
https://coveralls.io/repos/ladyrassilon/presser/badge.png?branch=master https://travis-ci.org/ladyrassilon/presser.svg?branch=master Latest Version Supported Python implementations Development Status
This is a simple library that attempts to extract the data for a vine from a given vine.co URL. Its a little rough and ready, and given that Vine can change their page design at any time, cannot be guaranteed to work.
You’ll want to keep an eye out for PresserJavaScriptParseError because this will probably indicate that this is the case.
You will need Node installed, it does the evaluation of the javascript for more stable javascript data extraction. I am looking to find a viable alternative so the package will not be node dependent, but as yet, I’ve not found a viable alternative.

However, here is the example usage:

from presser.presser import Presser
press = Presser()

#For a vine id
vine = press.get_data_for_vine_id("OBiwWuBm0Eg")

#For a vine url
vine = press.get_data_for_vine_from_url("https://vine.co/v/OBiwWuBm0Eg")

vine.keys()
vine["avatarUrl"]

Warning

Vine does not permit scraping, so please do not use this in an automated fashion, but it should be okay if your workflow simplifies and speeds up the workflow of a user going to an url and extracting the data manually.

If you try to do large batches of vine urls for extraction in a short period of time, then you will probably annoy Vine. Don’t do this please.

Release files for Presser 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Presser 0.1.7
File Size Uploaded
Presser-0.1.7.tar.gz 3.5 kB Details

Release files / Presser-0.1.7.tar.gz

Download URL Presser-0.1.7.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3acad01a85bf35066ac6c59c993b391e67206e6c25990177ecd12a75d5f5584b
BLAKE2b-256 checksum
How to use checksums
76d79e7e0f770ddaa5762dd7fbf666a56a853bef0ccaab7fcbb59469e2b1eb30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.1.8

1 release file

This release

0.1.7 This release

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.2

1 release file

0.1.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page