Extracts data from vine, in lieu of an API
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"]["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.
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"]
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.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size Presser-0.1.8.tar.gz (3.7 kB)||File type Source||Python version None||Upload date||Hashes View|