Metadata-Version: 2.0
Name: phlib
Version: 0.1.0
Summary: A PornHub client.
Home-page: https://github.com/kennethreitz/phlib
Author: Kenneth Reitz
Author-email: me@kennethreitz.org
License: MIT
Description-Content-Type: UNKNOWN
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Dist: requests
Requires-Dist: bs4
Requires-Dist: delegator.py
Requires-Dist: crayons
Requires-Dist: docopt
Requires-Dist: youtube-dl
Requires-Dist: lxml


phlib: empowering… porn?
========================

This is a simple library that scrapes PornHub for content, and provides
a simple, elegant API for interacting with the website.

Only Python 3 is supported.

Example Usage
-------------

::

    >>> from phlib import PornHub
    >>> ph = PornHub()

    >>> ph.categories
    ...

    >>> ph['example category']
    <Category title='example category'>

    >>> cat = _
    >>> cat.videos(max=25)
    ...

    >>> ph.search('some search term')
    ...

Videos have a ``download()`` method, which will download the
video to your current directory.

A CLI utility is provided, ``ph``::

    Ph — empowering porn users everywhere.

    Usage:
      ph <search>... [--max=<n>] [--meta] [--download]
      ph (-h | --help)
      ph --version

    Options:
      -h --help     Show this screen.
      --version     Show version.
      --max=<n>     Maximum number of videos to list [default: 25].
      --meta        Display video meta-data.
      --list        List categories.
      --download    Downloads videos.

Enjoy!


