pornhun爬虫
可以获取pornhub的视频信息
getVideoList 任意页面的视频列表
传入一个url如 www.pornhub.com/video?c=111&page=1
该函数会返回一个PornhubVideo类列表,格式如下:
PornhubVideo类(Class)
用于获取并保存视频信息
函数(methdos)
| 函数 | 解释 |
|---|---|
| PornhubVideo(url_or_viewkey, ifGetInfo=False) | 构造函数 -url_or_viewkey: str - 视频页面链接或viewkey -ifGetInfo: bool - 是否获取信息,默认为 False -True: 生成对象时获取视频信息。 -False: 生成对象时不获取视频信息,之后若需获取,可用 GetInfo() 函数。 |
| GetInfo() | 获取视频信息 |
| GetRelated(page=1, ifGetInfo=False) | 利用视频ID,获取该视频ID的全部相似推荐(共10个),返回格式与getVideoList相同 page: 选择要获取第几页,默认为1。 ifGetInfo: bool - 是否获取信息,默认为 False -True: 生成对象时获取视频信息。 -False: 生成对象时不获取视频信息,之后若需获取,可用 GetInfo() 函数。 |
| RandomPorn() | 获取随机视频 |
属性(properties)
| 属性 | 解释 |
|---|---|
| pageUrl: str | 原始网页链接地址 |
| viewkey: str | 视频viewkey |
| videoID: str | 视频ID,用于获取相关视频 |
| title: str | 视频标题 |
| imgUrl: str | 视频封面图片链接地址 |
| duration: str | 视频时长,格式为 hh:mm:ss |
| definitions: dict | 视频所有格式、分辨率及链接 |
| isPremium: bool | 是否为会员视频 |
Metadata
Release files for pornhubSpider 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pornhubSpider-1.1.2.tar.gz | 3.9 kB | Without provenance | Details for pornhubSpider-1.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pornhubSpider-1.1.2-py3-none-any.whl | Python 3 | none | any | Details for pornhubSpider-1.1.2-py3-none-any.whl |
Total release size: 8.8 kB
Release files / pornhubSpider-1.1.2.tar.gz
| Download URL | pornhubSpider-1.1.2.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ee6a1d9aac5598f97f3493307d63a7c50f9dffe35cfcd6f1b2cff66f5bcb1ee
|
|
BLAKE2b-256 checksum How to use checksums |
474dbf936bc45ba26a13899f3b30485f77d67838a3ece85105c433a5bc933a22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
|
Release files / pornhubSpider-1.1.2-py3-none-any.whl
| Download URL | pornhubSpider-1.1.2-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ec8a3ac12bbd092ea4e2ba5092741e629aa250d508de4a5324852f3df6da431e
|
|
BLAKE2b-256 checksum How to use checksums |
aa5978182c2d94c33cf7ad190b1683c491c750309ce8abe365438c429ebdca0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
|
Security for pornhubSpider 1.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.