This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description
primewire
=========

Link scraper for http://www.primewire.ag

Install
-------

To install using setuptools

.. code-block:: bash

$ python setup.py install

or using pip

.. code-block:: bash

$ pip install primewire

Tests
----

.. code-block:: bash

$ python setup.py test

Usage
-----

Search for a movie

.. code-block:: bash

$ primewire The Goonies

Search for a TV show

.. code-block:: bash

$ primewire Fargo --season 1 --episode 1

API
---

**search(title, year=None, season=None, episode=None)**

This function allows you to search for movie/tv show with given title.
Year, season, and episode are optional. If no season and episode is given,
the search defaults to movie search. See the example below.

**extract_page_from_results(results, options={})**

This function allows you to plug in your own custom results payload directly from primewire without having to use the default search function. You can use requests or any other http client to feed the function a valid HTTP request with your payload. Options is optional, however will usually need to contain the keys 'season' and 'episode' if the search is for a tv show. See the example below.

**extract_links_from_page(page)**

This function allows you to plugin in your custom page directly from primewire
without needing to scrape for the page through search results. You can use
requests or any other http client to feed the function a valid HTTP request. See
the example below.

Example
-------

# Using the search function to seek out the tv show 'The Simpsons' (season 1, episode 1)

.. code-block:: python

>>> from primewire.primewire import search
>>> print(search('The Simpsons', year=None, season=1, episode=1))

# Using the extract page from results function carrying out the same search

.. code-block:: python

>>> from primewire.primewire import extract_page_from_results
>>> import requests
>>> r = requests.get('http://www.primewire.ag', params={ 'search_keywords' : 'The Simpsons', 'search_section' : '2' })
>>> print(extract_page_from_results(r.text, { 'season': 1, 'episode': 1 }))

# Using the extract links from page function carrying out the same search

.. code-block:: python

>>> from primewire.primewire import extract_links_from_page
>>> import requests
>>> r = requests.get('http://www.primewire.ag/tv-4131-The-Simpsons/season-1-episode-1')
>>> print(extract_links_from_page(r.text))

License
-------

See LICENSE
Release History

Release History

1.0.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
primewire-1.0.2-py2.7.egg (6.6 kB) Copy SHA256 Checksum SHA256 2.7 Egg Jan 17, 2016
primewire-1.0.2-py3.4.egg (6.8 kB) Copy SHA256 Checksum SHA256 3.4 Egg Jan 17, 2016
primewire-1.0.2.tar.gz (3.5 kB) Copy SHA256 Checksum SHA256 Source Jan 17, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting