Skip to content
Download videos from pornhub.
JavaScript
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
imgs fix pieces download issue Mar 12, 2018
src fix broken video issue Mar 14, 2018
.eslintrc fix broken video issue Mar 14, 2018
.gitignore init commit May 30, 2017
LICENSE Initial commit May 30, 2017
README.md Update README.md Mar 4, 2019
package-lock.json sum: update node modules and readme May 8, 2018
package.json sum: update node modules and readme May 8, 2018

README.md

pornhub-downloader

Important Notice: This project is aim to study Node.js, so I will not update this project

重要通知:本项目旨在学习Node.js,从今日(2018-09-09)起不再维护。(年轻虽好,切莫强撸灰飞烟灭 😄

Download highest quality videos from pornhub.

Version 2.x is coming now!

statement

This repo is just for studying, not for other purpose.

Screenshots

running

files

Features

  • Support proxy setting.

  • Always choose highest quality video to download(720P usually).

  • Support keyword searching.

  • Show progress bar and download speed.

  • Skip repeat file.

  • Download one by one until error occurs or fetch nothing.

  • Download with custom URLs or custom page.

  • split big file to pieces, avoid downloading incomplete file

Requirement

  • Node.js 7.6.0+.

  • Your network can access to pornhub.com.

Usage

  • clone this repo.

  • install node modules:

npm install

default

  • run
npm start

custom

If you only want to download specific video(s), you can edit src/feature/urls.js like this:

const urls = [
  'https://www.pornhub.com/view_video.php?viewkey=ph5844dbb3a1456'
];

Add your URLs as array.

And then run:

npm run url

Configuration

You can config some params on src/config.json.

proxyUrl: set up the proxy with port. For example: http://127.0.0.1:1087. If you don't need to set up proxy,just keep it empty string.

timeout: set up request timeout.

search: the keyword for searching.

barWidth: the progress bar width, should be between 20 to 120, set up 60 by default.

barFullChar: the 'finished char' for the progress bar.

barEmptyChar: the 'unfinished char' for the progress bar.

downloadDir: the directory you want to save videos.

pathname: the pathname of the page you want to do download, for example: you want to download files from this page https://www.pornhub.com/user/xxx/favorite, then you can set pathname as /user/xxx/favorite.

Download speed

The speed depends on your local network or proxy.

LICENSE

MIT

You can’t perform that action at this time.