phfetch


Namephfetch JSON
Version 1.1 PyPI version JSON
download
home_pagehttps://github.com/Egsagon/pornhub-fetch/
SummaryA light pornhub downloading interface
upload_time2023-06-08 12:15:42
maintainer
docs_urlNone
authorEgsagon
requires_python>=3.11
licenseMIT
keywords
VCS
bugtrack_url
requirements requests
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # PH Fetch

A light python interface for fetching and downloading videos from Pornhub.

## Usage

Initialisation:
```python
import phfetch

# Initialise with a video url
video = phfetch.video( url = 'https://...' )

# Or a viewkey token
video = phfetch.video( key = 'xxxxxxxxxx' )
```

Available video infos:
```python
>>> video.title # The Pornhub title of the video
>>> video.available # Whether the video is available to view (because deleted or not disponible in country)
>>> video.duration # The video duration (in seconds)
>>> video.hotspots # The list of hotspots of the video
```

To download a video:
```python
# Using an absolute or relative file path 
video.download( path = 'my-video.mp4' )

# Using a directory path (the file name will be the video title)
video.download( path = 'my-dir/' )

# Using a specific quality
video.download( path = './', quality = 'best')
# Possible quality values:
# best, middle, worst or an int
# Can also be a constant from pyhub.Quality, e.g:

video.download( path = './', quality = pyhub.Quality.BEST )
```

An example UI implementation can be found in the `ui.py` file:
![image](https://github.com/Egsagon/pornhub-fetch/blob/master/demo.png)

## Installation

Minimum python version: `3.11`
Dependencies: `requests`

Install using pip:
```sh
pip install git+https://github.com/Egsagon/pornhub-fetch.git
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Egsagon/pornhub-fetch/",
    "name": "phfetch",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": "",
    "keywords": "",
    "author": "Egsagon",
    "author_email": "egsagon12@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/a7/0f/11512fb5e53241cb5df2a854bfa90778258218c0e1fb345bf43d107f4cdf/phfetch-1.1.tar.gz",
    "platform": "unix",
    "description": "# PH Fetch\n\nA light python interface for fetching and downloading videos from Pornhub.\n\n## Usage\n\nInitialisation:\n```python\nimport phfetch\n\n# Initialise with a video url\nvideo = phfetch.video( url = 'https://...' )\n\n# Or a viewkey token\nvideo = phfetch.video( key = 'xxxxxxxxxx' )\n```\n\nAvailable video infos:\n```python\n>>> video.title # The Pornhub title of the video\n>>> video.available # Whether the video is available to view (because deleted or not disponible in country)\n>>> video.duration # The video duration (in seconds)\n>>> video.hotspots # The list of hotspots of the video\n```\n\nTo download a video:\n```python\n# Using an absolute or relative file path \nvideo.download( path = 'my-video.mp4' )\n\n# Using a directory path (the file name will be the video title)\nvideo.download( path = 'my-dir/' )\n\n# Using a specific quality\nvideo.download( path = './', quality = 'best')\n# Possible quality values:\n# best, middle, worst or an int\n# Can also be a constant from pyhub.Quality, e.g:\n\nvideo.download( path = './', quality = pyhub.Quality.BEST )\n```\n\nAn example UI implementation can be found in the `ui.py` file:\n![image](https://github.com/Egsagon/pornhub-fetch/blob/master/demo.png)\n\n## Installation\n\nMinimum python version: `3.11`\nDependencies: `requests`\n\nInstall using pip:\n```sh\npip install git+https://github.com/Egsagon/pornhub-fetch.git\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A light pornhub downloading interface",
    "version": "1.1",
    "project_urls": {
        "Homepage": "https://github.com/Egsagon/pornhub-fetch/"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2981433d9749b958f3427902c8db7ea62e20cacfc8c9bd64d11c1b20eb36f42e",
                "md5": "b4157c50a05fd499cbf823e7bc004d44",
                "sha256": "4b20c09054a8dd564a68146bb5d0bae880ee0e18977fb4e73090c2f130a97fe6"
            },
            "downloads": -1,
            "filename": "phfetch-1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b4157c50a05fd499cbf823e7bc004d44",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 8644,
            "upload_time": "2023-06-08T12:15:41",
            "upload_time_iso_8601": "2023-06-08T12:15:41.283510Z",
            "url": "https://files.pythonhosted.org/packages/29/81/433d9749b958f3427902c8db7ea62e20cacfc8c9bd64d11c1b20eb36f42e/phfetch-1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a70f11512fb5e53241cb5df2a854bfa90778258218c0e1fb345bf43d107f4cdf",
                "md5": "2f20830aa89b122f8ad17a6553caad3b",
                "sha256": "b9d87fb4ac443df28bc8c6a1e82dc6b651fbb6627ccfb6e9f2810007cc3a0a15"
            },
            "downloads": -1,
            "filename": "phfetch-1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "2f20830aa89b122f8ad17a6553caad3b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 8299,
            "upload_time": "2023-06-08T12:15:42",
            "upload_time_iso_8601": "2023-06-08T12:15:42.847656Z",
            "url": "https://files.pythonhosted.org/packages/a7/0f/11512fb5e53241cb5df2a854bfa90778258218c0e1fb345bf43d107f4cdf/phfetch-1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-08 12:15:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Egsagon",
    "github_project": "pornhub-fetch",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "requests",
            "specs": [
                [
                    ">=",
                    "2"
                ]
            ]
        }
    ],
    "lcname": "phfetch"
}
        
Elapsed time: 0.10595s