Coder Social home page Coder Social logo

spacecase123 / pornhubspider Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cksgf/pornhubspider

0.0 0.0 0.0 10 KB

pornhun爬虫。可用于爬取全部pornhub视频信息,下载全部pornhub视频。三个函数,能能有获取任意页面的视频列表,任意视频的全部清晰度下载地址,任意视频的全部相关推荐等

Python 100.00%

pornhubspider's Introduction

由于19年下半年pornhub更改了页面规则,这个程序已经不好用了,我也懒得更新

各位亲看看其他人的程序吧

pornhun爬虫

可以获取pornhub的视频信息

getVideoList 任意页面的视频列表

传入一个url如 www.pornhub.com/video?c=111&page=1
该函数会返回一个字典,格式如下:

{
	{
    'title':'田川祐夢 c930',        #视频标题
    'preview' : 'https://xxxxxxx', #视频预览片段
    'pic' : 'https://xxxxxxx',     #视频封面
    'url' : 'https://xxxxxxx',     #视频播放地址
    'time' : 20.00                 #视频时长
    },
    ...
}

getVideoUrl 视频的全部清晰度下载地址及视频ID

传入视频播放地址,可解析出视频全部清晰度及视频ID(ID用于获取相似推荐),
返回值为列表,列表第一项为包含全部清晰度的字典,第二项为视频ID
例如:

[
	[{
			'defaultQuality': True,             #是否默认播放
			'format': 'mp4',                    #视频格式
			'quality': '720',                   #视频清晰度
			'videoUrl': 'https://xxxxxxx'       #视频地址(可直接用于下载)
	 },
	 ...
	 ],
	187765541                                   #视频ID
]

getVideoSimilar 视频的全部相关推荐

传入视频ID,获取该视频ID的全部相似推荐(共60个),返回格式与getVideoList相同

pornhubspider's People

Contributors

cksgf avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.