기분이 좋으면 맥주를 기부 할 수 있습니다.
기부 버튼
파이썬의 파이썬 버전을 확인하십시오 : 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/username/media/phmedia
첫 번째 실행에서 Phdler는 나중에 모든 것에 사용될 database.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
배치 옵션은 한 번에 여러 URL을 가져올 수있는 .txt 파일의 전체 경로를 요청합니다.
.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
배치 옵션은 한 번에 여러 URL을 가져올 수있는 .txt 파일의 전체 경로를 요청합니다.
.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를 입력 할 수있는 옵션을 제공합니다.
새 항목 (Model/Pornstar 등)을 추가 할 때마다 스크립트는 웹 사이트에서 실제 이름을 긁어 내고 데이터베이스에 작성합니다. 그것이 우리가 최종 폴더에서 예쁜 이름을 가질 수있는 방법입니다. 추가 된 모든 항목은 New = 1의 상태로 처리되므로 스크립트는 선택한 항목에서 모든 비디오를 다운로드해야한다는 것을 알고 있습니다. 선택한 항목에 대해 모든 비디오의 다운로드가 완료되면 스크립트가 새로운 = 0으로 변경됩니다. 이런 식으로 스크립트를 시작하면 먼저 데이터베이스를 통과하고 New = 1의 상태가있는 모든 항목을 요청하며, 그 후에는 New = 0이있는 항목에서 새 비디오를 확인합니다. 이것은 당신을 괴롭히지 않아야합니다 ... 나는 그것이 어떻게 작동하는지 설명하고 싶었습니다.
YouTube-DL
예쁜
BS4 일명 BeautifulSoup4
그리고 물론, 여러분 모두 :)