PornHub downloader python
1.0.0
如果您覺得,可以給我捐贈一兩杯啤酒;)只是為了麻煩!
捐贈按鈕
檢查哪個版本的python:python- version
推薦和測試的用法是Python3。
另外,檢查是否已安裝了PIP3(APT安裝Python3-PIP)。
1. $ apt install python3
2. $ apt install python3-pip
3. $ wget https://github.com/mariosemes/PornHub-downloader-python/archive/master.zip
4. $ unzip master.zip
5. $ cd PornHub-downloader-python-master
6. $ pip3 install -r requirements.txt
7. $ python3 phdler.py
它會要求您下載文件夾路徑。請在沒有最後的後斜線的情況下進入您的完整路徑。
像這樣:/home/用戶名/媒體/phmedia
在第一次運行時,Phdler將創建一個數據庫。DB,以後將用於所有內容。
+-------------------+---------+------------------------------------------------------+
| Tool | command | item |
+-------------------+---------+------------------------------------------------------+
| python3 phdler.py | start | |
| python3 phdler.py | custom | url | batch |
| python3 phdler.py | add | model | pornstar | channel | user | playlist | batch |
| python3 phdler.py | list | model | pornstar | channel | user | playlist | all |
| python3 phdler.py | delete | model | pornstar | channel | user | playlist |
+-------------------+---------+------------------------------------------------------+
python3 phdler.py start
python3 phdler.py custom https://www.pornhub.com/view_video.php ? viewkey=ph5d69a2093729e
or
python3 phdler.py custom batch
批處理選項將要求您提供.txt文件的完整路徑,您可以在其中一次導入多個URL。
注意.txt文件中的每個URL都在他自己的行中。
python3 phdler.py add https://www.pornhub.com/model/luxurygirl
or
python3 phdler.py add https://www.pornhub.com/pornstar/leolulu
or
python3 phdler.py add https://www.pornhub.com/channels/mia-khalifa
or
python3 phdler.py add https://www.pornhub.com/users/lasse98
or
python3 phdler.py add https://www.pornhub.com/playlist/30012401
or
python3 phdler.py add batch
批處理選項將要求您提供.txt文件的完整路徑,您可以在其中一次導入多個URL。
注意.txt文件中的每個URL都在他自己的行中。
python3 phdler.py list model
or
python3 phdler.py list pornstar
or
python3 phdler.py list channels
or
python3 phdler.py list users
or
python3 phdler.py list playlist
or
python3 phdler.py list all
python3 phdler.py delete model
or
python3 phdler.py delete pornstar
or
python3 phdler.py delete channels
or
python3 phdler.py delete users
or
python3 phdler.py delete playlist
選項刪除將列出所選項目類型,從數據庫中列出它們,並為您提供一個選項,以輸入要刪除的項目ID。
每次添加新項目(模型/色情明星等)時,腳本都會從網站上刮擦真實名稱並將其寫入數據庫。這就是我們可以在最終文件夾中擁有漂亮名稱的方式。每個添加的項目均以new = 1的狀態處理,因此腳本知道它需要從所選項目中下載所有視頻。為所選項目完成所有視頻的下載後,腳本將其更改為new = 0。這樣,當您啟動腳本時,它將首先從數據庫中降低腳步,並要求所有具有new = 1狀態的項目,此後,它將檢查具有NEW = 0的項目的新視頻。這不應該打擾您...我只是想解釋它是如何工作的。
YouTube-DL
漂亮的詞
BS4又名Beautifulsoup4
當然,你們所有人:)