-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
53 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,82 +1,72 @@ | ||
Crunchyroll-XML-Decoder-py3 | ||
=================== | ||
# Crunchyroll-XML-Decoder-py3 | ||
|
||
|
||
ORIGINALLY BY @einstein95 | ||
|
||
Requires Python modules: | ||
- Node.js is required for (safe) Javascript execution. | ||
Your computer or server may already have it (check with node -v). If not, you can install it with apt-get install | ||
nodejs on Ubuntu and Debian. Otherwise, please read ( https://nodejs.org/en/download/package-manager/ )Node's installation instructions. | ||
|
||
Requires Python modules(autoinstall dont need to download): | ||
- lxml (https://pypi.python.org/pypi/lxml/3.2.5) | ||
- m3u8 (https://pypi.python.org/pypi/m3u8/) | ||
- cfscrape (https://pypi.python.org/pypi/cfscrape/) | ||
- backports | ||
- requests | ||
- colorama | ||
- cryptography==2.4.2 | ||
- m3u8 | ||
- beautifulsoup4 | ||
- backports.shutil_get_terminal_size | ||
- unidecode | ||
* Node.js is required for (safe) Javascript execution. Your computer or server may already have it (check with node -v). If not, you can install it with apt-get install nodejs on Ubuntu and Debian. Otherwise, please read ( https://nodejs.org/en/download/package-manager/ )Node's installation instructions. | ||
|
||
### Requires Python modules(autoinstall dont need to download): | ||
|
||
* lxml (https://pypi.python.org/pypi/lxml/3.2.5) | ||
* m3u8 (https://pypi.python.org/pypi/m3u8/) | ||
* cfscrape (https://pypi.python.org/pypi/cfscrape/) | ||
* backports | ||
* requests | ||
* colorama | ||
* cryptography==2.4.2 | ||
* m3u8 | ||
* beautifulsoup4 | ||
* backports.shutil_get_terminal_size | ||
* unidecode | ||
|
||
This is a composite of various scripts required to download video files from CrunchyRoll that have been automated with a batch file. | ||
|
||
### INSTRUCTIONS: | ||
|
||
This is a composite of various scripts required to download video files from CrunchyRoll | ||
that have been automated with a batch file. | ||
Pre-Setup (Only need to do these once.): | ||
1. Install Python 3.3.0 or newer | ||
2. Run crunchy-xml-decoder.bat or crunchy-xml-decoder.py to generate necessary files (settings.ini and cookies) | ||
3. choices from the option | ||
|
||
Per-Video Process: | ||
1. Copy the URL of the CrunchyRoll video you want to download from your web browser | ||
2. Run crunchy-xml-decoder-py3.bat or crunchy-xml-decoder-py3.py choice 1 and paste link | ||
3. Download will start automatically. Everything is automated. | ||
4. Browse to the 'export' folder to view the completed file. | ||
|
||
INSTRUCTIONS: | ||
SPECIAL NOTE: There is another batch file in the _run folder.. | ||
Run crunchy-xml-decoder-py3.bat or crunchy-xml-decoder-py3.py choice 2 and paste link | ||
Just want the subtitles to an episode? OK.. fair 'nuff. Use this. | ||
|
||
Pre-Setup (Only need to do these once.): | ||
1. Install Python 3.3.0 or newer | ||
2. Run crunchy-xml-decoder.bat or crunchy-xml-decoder.py to generate necessary files (settings.ini and cookies) | ||
3. choices from the option | ||
#### WHAT IS THE POINT OF THIS SCRIPT? WHAT IS IT ACTUALLY DOING?: | ||
|
||
Per-Video Process: | ||
1. Copy the URL of the CrunchyRoll video you want to download from your web browser | ||
2. Run crunchy-xml-decoder-py3.bat or crunchy-xml-decoder-py3.py choice 1 and paste link | ||
3. Download will start automatically. Everything is automated. | ||
4. Browse to the 'export' folder to view the completed file. | ||
The process of getting a working download from CrunchyRoll is effectively doing the following: | ||
* Downloading and decrypting subtitles | ||
* Downloading the video as FLV or MPEG-TS | ||
* Splitting the FLV/TS file into 264 video and aac audio | ||
* Merging video, audio, and subtitles into a mkv file | ||
* Naming the new video something other than 'video.mkv' | ||
|
||
SPECIAL NOTE: There is another batch file in the _run folder.. | ||
Run crunchy-xml-decoder-py3.bat or crunchy-xml-decoder-py3.py choice 2 and paste link | ||
Just want the subtitles to an episode? OK.. fair 'nuff. Use this. | ||
NOTES FROM THE AUTHORS: | ||
> From the DX author: Yeah, I wrote the basis for this "new 'n' improved version". Basically, I monitored the traffic to and from Crunchyroll while a video was loading, found a few (read: a lot of) similarities, and basically wrote the script to do the same thing, but parse the file and call upon RTMPdump to dump the video (RTMPexplorer was doing the same thing basically). | ||
From the anonymous original author: | ||
>I did not write these programs, and I didn't even come up with this method. All I have done is created a few little bat files to bring them together. Original instructions on how this is done can be found here: | ||
> | ||
> http://www.darkztar.com/forum/showthread.php?219034-Ripping-videos-amp-subtitles-from-Crunchyroll-%28noob-friendly%29 | ||
WHAT IS THE POINT OF THIS SCRIPT? WHAT IS IT ACTUALLY DOING?: | ||
#### What new: | ||
|
||
The process of getting a working download from CrunchyRoll is effectively doing the following: | ||
- Downloading and decrypting subtitles | ||
- Downloading the video as FLV or MPEG-TS | ||
- Splitting the FLV/TS file into 264 video and aac audio | ||
- Merging video, audio, and subtitles into a mkv file | ||
- Naming the new video something other than 'video.mkv' | ||
* new way for login that dont need cfscrape | ||
* add progressbar to download | ||
* add color for console | ||
* use new way to get video url which include Hardsub video and 240p | ||
* new way to get usa sesson_id | ||
|
||
#### What new: | ||
|
||
NOTES FROM THE AUTHORS: | ||
From the DX author: | ||
Yeah, I wrote the basis for this "new 'n' improved version". Basically, I monitored the traffic | ||
to and from Crunchyroll while a video was loading, found a few (read: a lot of) similarities, and | ||
basically wrote the script to do the same thing, but parse the file and call upon RTMPdump to | ||
dump the video (RTMPexplorer was doing the same thing basically). | ||
|
||
From the anonymous original author: | ||
I did not write these programs, and I didn't even come up with this method. All I have done is | ||
created a few little bat files to bring them together. Original instructions on how this is | ||
done can be found here: | ||
http://www.darkztar.com/forum/showthread.php?219034-Ripping-videos-amp-subtitles-from-Crunchyroll-%28noob-friendly%29 | ||
What new: | ||
- new way for login that dont need cfscrape | ||
- add progressbar to download | ||
- add color for console | ||
- use new way to get video url which include Hardsub video and 240p | ||
- new way to get usa sesson_id | ||
|
||
What new: | ||
|
||
- clean the code from unused lines and codes | ||
- update the code to use new proxy function | ||
- remove the old function to download subtitle and use new code | ||
* clean the code from unused lines and codes | ||
* update the code to use new proxy function | ||
* remove the old function to download subtitle and use new code |