mirror of
https://github.com/neosubhamoy/pytubepp.git
synced 2025-12-19 11:12:59 +05:30
(fixed): BotDetection warning by enabling auto poToken genration in a separate Node.js environment
This commit is contained in:
12
README.md
12
README.md
@@ -9,7 +9,7 @@
|
|||||||
[](https://github.com/neosubhamoy/pytubepp/)
|
[](https://github.com/neosubhamoy/pytubepp/)
|
||||||
[](https://github.com/neosubhamoy/pytubepp/)
|
[](https://github.com/neosubhamoy/pytubepp/)
|
||||||
|
|
||||||
😀 GOOD NEWS: If you are Windows(10/11) user and don't want to bother remembering PytubePP Commands! (You are not familier with Command Line Tools). We recently released a Browser Extension that can auto detect YouTube Videos and You can download the Video in one click directly from the browser using PytubePP CLI. Install [PytubePP Helper](https://github.com/neosubhamoy/pytubepp-helper) app in your System and add [PytubePP Extension](https://github.com/neosubhamoy/pytubepp-extension) in your Browser to get started.
|
😀 GOOD NEWS: If you are not a power user and don't want to bother remembering PytubePP Commands! (You are not familier with Command Line Tools). We recently released a Browser Extension that can auto detect YouTube Videos and You can download the Video in one click directly from the browser using PytubePP CLI. Install [PytubePP Helper](https://github.com/neosubhamoy/pytubepp-helper) app in your System and add [PytubePP Extension](https://github.com/neosubhamoy/pytubepp-extension) in your Browser to get started.
|
||||||
|
|
||||||
### **🏷️ Features**
|
### **🏷️ Features**
|
||||||
* Auto Post-Process & Merge YouTube DASH Streams
|
* Auto Post-Process & Merge YouTube DASH Streams
|
||||||
@@ -22,6 +22,7 @@
|
|||||||
### **📎 Pre-Requirements**
|
### **📎 Pre-Requirements**
|
||||||
* [Python](https://www.python.org/downloads/) (>=3.8)
|
* [Python](https://www.python.org/downloads/) (>=3.8)
|
||||||
* [FFmpeg](https://ffmpeg.org/)
|
* [FFmpeg](https://ffmpeg.org/)
|
||||||
|
* [Node.js](https://nodejs.org/en/download/) (required for auto YT poToken genration which is currently not possible in Python environment)
|
||||||
|
|
||||||
### **🧩 Python Dependencies**
|
### **🧩 Python Dependencies**
|
||||||
* [pytubefix](https://pypi.org/project/pytubefix/)
|
* [pytubefix](https://pypi.org/project/pytubefix/)
|
||||||
@@ -48,7 +49,14 @@
|
|||||||
- Windows (10/11): `winget install ffmpeg`<br>
|
- Windows (10/11): `winget install ffmpeg`<br>
|
||||||
- MacOS (using Homebrew): `brew install ffmpeg`<br>
|
- MacOS (using Homebrew): `brew install ffmpeg`<br>
|
||||||
- Android (using Termux): `pkg install ffmpeg`
|
- Android (using Termux): `pkg install ffmpeg`
|
||||||
3. Install PytubePP (using PIP)
|
3. Install Node.js
|
||||||
|
- Linux (Debian): `curl -o- https://fnm.vercel.app/install | bash && fnm install --lts && fnm use lts`<br>
|
||||||
|
- Linux (Fedora): `curl -o- https://fnm.vercel.app/install | bash && fnm install --lts && fnm use lts`<br>
|
||||||
|
- Linux (Arch): `curl -o- https://fnm.vercel.app/install | bash && fnm install --lts && fnm use lts`<br>
|
||||||
|
- Windows (10/11): `winget install Schniz.fnm;fnm install --lts;fnm use lts`<br>
|
||||||
|
- MacOS (using Homebrew): `brew install node`<br>
|
||||||
|
- Android (using Termux): `pkg install nodejs`
|
||||||
|
4. Install PytubePP (using PIP)
|
||||||
|
|
||||||
```terminal
|
```terminal
|
||||||
pip install pytubepp
|
pip install pytubepp
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ class YouTubeDownloader:
|
|||||||
|
|
||||||
if is_valid_url(link):
|
if is_valid_url(link):
|
||||||
link = is_valid_url(link).group(1)
|
link = is_valid_url(link).group(1)
|
||||||
self.video = YouTube(link, on_progress_callback=progress)
|
self.video = YouTube(link, 'ANDROID', on_progress_callback=progress)
|
||||||
self.author = self.video.author
|
self.author = self.video.author
|
||||||
self.title = re.sub(r'[\\/*?:"<>|]', '_', self.author + ' - ' + self.video.title)
|
self.title = re.sub(r'[\\/*?:"<>|]', '_', self.author + ' - ' + self.video.title)
|
||||||
self.thumbnail = self.video.thumbnail_url
|
self.thumbnail = self.video.thumbnail_url
|
||||||
|
|||||||
Reference in New Issue
Block a user