Important Update 0.1.8
Vine has changed their video URL structure so now URLs are passed in as a list.
So if you were using the “videoUrl” key, to get the equivalent URL in the new structure.
# You'll need to instead of going to.
vine["videoUrl"]
# You'll need to go to
vine["videoUrls"][0]["videoUrl"]
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.
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.
Metadata
Release files for Presser 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| Presser-0.1.8.tar.gz | 3.7 kB | Without provenance | Details |
Release files / Presser-0.1.8.tar.gz
| Download URL | Presser-0.1.8.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a998f79071ef0240c345231a8276fb585474b3605d6dcdbf7a1fd6f8afe240df
|
|
BLAKE2b-256 checksum How to use checksums |
d4a6554982caf182d7ef6d0c2d723b0cf87b27a1a7ed981bcff34dabf66c9a56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Presser 0.1.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.