Skip to main content

Extracts data from vine, in lieu of an API

Project description

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 will need node installed (I’m looking at alternative ways of implementing the javascript evaluation, but node is currently the easiest way)

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 allow 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.

Project details


Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page