Skip to content

Commit

Permalink
Merge branch 'release/0.1.6' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
ladyrassilon committed Sep 21, 2014
2 parents 3db9a9d + 8996c66 commit 62c2f4c
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 33 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include *.md
include *.rst
29 changes: 0 additions & 29 deletions README.md

This file was deleted.

44 changes: 44 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
============
Presser v0.1
============

.. image:: https://coveralls.io/repos/ladyrassilon/presser/badge.png?branch=master
:target: https://coveralls.io/r/ladyrassilon/presser?branch=master
.. image:: https://travis-ci.org/ladyrassilon/presser.svg?branch=master
:target: https://travis-ci.org/ladyrassilon/presser
.. image:: https://pypip.in/version/Presser/badge.svg
:target: https://pypi.python.org/pypi/Presser/
:alt: Latest Version
.. image:: https://pypip.in/implementation/Presser/badge.svg
:target: https://pypi.python.org/pypi/Presser/
:alt: Supported Python implementations
.. image:: https://pypip.in/status/Presser/badge.svg
:target: https://pypi.python.org/pypi/Presser/
:alt: 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.
19 changes: 16 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from setuptools import setup

with open("README.md") as readme_file:
with open("README.rst") as readme_file:
long_description = readme_file.read()

setup(name="Presser",
version="0.1.5",
version="0.1.6",
packages=["presser",],
license="GNU GPL v3.0",
description="Extracts data from vine, in lieu of an API",
Expand All @@ -19,6 +19,15 @@
"PyExecJS>=1.0.4",
"responses>=0.2.2"
],
requires=[
"beautifulsoup4(>=4.3.2)",
"requests(>=2.4.0)",
"mock(>=1.0.1)",
"coverage(>=3.7.1)",
"nose(>=1.3.4)",
"PyExecJS(>=1.0.4)",
"responses(>=0.2.2)"
],
long_description=long_description,
test_suite="nose.collector",
url="https://github.com/ladyrassilon/presser",
Expand All @@ -29,6 +38,10 @@
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: Implementation :: PyPy"
"Programming Language :: Python :: Implementation",
"Programming Language :: Python :: Implementation :: CPython",
# "Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Python",
"Intended Audience :: Developers",
]
)

0 comments on commit 62c2f4c

Please sign in to comment.