Get videos from porn sites
Project description
porn-lib-python
https://github.com/sofia-gros/porn-lib-python
- 動画リンクからダウンロードリンクの発行
- チャンネル名で検索
- カテゴリー・タグリストの取得
- 他のサイトを追加する(Pornhub系は別ライブラリに任せるので対応しない)
import pornLib
xvideos = pornLib.PornLib(engine="xvideos")
# xvideos = pornlib.PornLib(engine="xvideos", soupSleep=1) # soupSleepはサイトの読み込み遅延です。サイトが重かったりネット速度が遅いときに使用します。
list = xvideos.list(limit=12)
for item in list:
# item == VideoDataClass
tags = xvideos.tags()
tags = xvideos.tags(keyword="jap")
# Tags or [ ...Tags ]
list = xvideos.search(keyword="cute") # same
list = xvideos.search(channel="xiaomaomi12138") # same
list = xvideos.search(tag="Asian_Woman-32") # same
list = xvideos.search(tag=tags) # same
list = xvideos.search(best="2024-01") # same
link = xvideos.getDownloadLink( list[0].link ) # xvideos video url
# link == VideoDownloadDataClass
@dataclasses.dataclass
class VideoDataClass:
title: str
img: str
link: str
quality: int
time: str
channel_name: str
channel_link: str
@dataclasses.dataclass
class VideoDownloadDataClass:
low: str | None
high: str | None
hls: str | None
@dataclasses.dataclass
class Tags:
name: str | None
id: str | None
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pornlib-1.0.2.tar.gz
(2.7 kB
view details)
Built Distribution
File details
Details for the file pornlib-1.0.2.tar.gz
.
File metadata
- Download URL: pornlib-1.0.2.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Windows/11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e5a0b260413d8f1885b1776524a8491ed5372a7d0f7e3ef12dd35e39580d084 |
|
MD5 | 645d5352fea40ba53f786b8653b97131 |
|
BLAKE2b-256 | 3267d803a70c44b9e4ab37055da184843546b1051a190af711c58e8cbf64dadf |
File details
Details for the file pornlib-1.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: pornlib-1.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Windows/11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9649def981d89664901f83d8629c04ca7d13c50c2a3cf786bf7ccae521d80070 |
|
MD5 | c5a2f77eabc868e88963af4a4e8fabfc |
|
BLAKE2b-256 | 044c69b3614eef74672c174070fb6ecb24acc1e12ec9f2f2a071023bf0578de0 |