Skip to content

Latest commit

 

History

History
78 lines (65 loc) · 2.3 KB

README_CN.md

File metadata and controls

78 lines (65 loc) · 2.3 KB

phpVideos

php 写的视频下载工具:

站点 视频
优酷
秒拍
腾讯
XVideos
Pornhub
91porn
微博酷燃
斗鱼
爱奇艺
Weibo
Twitter
Bilibili(B站)
今日头条
芒果TV

环境依赖

  • PHP >= 7.1.3
  • OpenSSL PHP Extension
  • cURL PHP Extension
  • FFmpeg:
    • Mac:brew install ffmpeg
    • Linux: Download
  • cURL >= 7.37.0

使用交流

Discord地址:https://discord.gg/xvNQPaT

QQ 群:

代理配置

cp config-template.php config.php
  • config.php
return [
    'http_proxy' => '127.0.0.1:1087',
    'weiboCookie' => '',

    'user_agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36',

    //91porn
    '91porn' => [
        'cookie' => '',
        'user_agent' => '',
    ]
];

使用方法

php start.php 'link_address'

php start.php 'link_address' -i //show playlist image

  • 使用 webui-aria2 下载
php start.php 'link_address' -ar

其他

Centos7 默认的 curl 版本是 7.29 的,需要升级。升级方法:

rpm -ivh http://mirror.city-fan.org/ftp/contrib/yum-repo/city-fan.org-release-2-1.rhel7.noarch.rpm
yum --enablerepo=city-fan.org update curl

curl 升级之后, php 需要重新编译,不能单独编译 php-curl 扩展

Windows10 使用教程

https://youtu.be/KPKoTLtGNOs

更新日志

  1. 2019-08-13:91porn 启用了谷歌人机验证,解决【在浏览器点击谷歌人机验证后进入官网,F12 复制请求头 Cookie 、User-Agent 两项信息到 config.php 文件中的 91porn 配置项】