<!-- Badges -->
[](https://pypi.org/project/animepahe-dlr/)
[](https://github.com/ed-archer/animepahe-dlr/)
[](https://github.com/ed-archer/animepahe-dlr/blob/main/license.md)
[](https://github.com/ed-archer/animepahe-dlr/issues)
<!--LineBreak-->
[](https://github.com/ed-archer/animepahe-dlr/)
[](https://github.com/ed-archer/animepahe-dlr/)
<!-- Badges -->
# animepahe-dlr
A python script to automate downloads from animepahe.
## Requirements
- Python3
- FireFox Web browser
## Script dependencies
- Selenium
- BeautifulSoup4
- requests
- tqdm
## Getting Started
1. Make sure you have Python and Firefox installed in your system
2. Install PyPI package using `pip install animepahe-dlr`
3. Wait for pip to install animepahe-dlr and all required dependencies. Enjoy the script :blush:
## Usage
- Syntax: `animepahe-dlr -<optional arguments>`
- To run the script, execute `animepahe-dlr`
- To use idm to capture downloads, execute script using '-idm' argument : `animepahe-dlr -idm`

## Features
- Search for an anime.
- Select anime from search result.
- Select episodes to download.
- Downloads are made using inbuilt-dlr (default).
- Inbuilt-dlr finds and resumes incomplete downloads by default.
- **Episode Selection Options:**
- `0` : downloads all the episodes of the selected anime.
- x : downloads episode x.
- eg:- `1` : downloads episode1, `5` downloads episode5 and so on.
- x-y : downloads episodes from x to y.
- eg:- `3-9` : downloads episodes 3 to 9 (3 and 9 inclusive)
- In case of multiple options, each options must be seperated by a `,`
- Example: `1, 3, 6-11` : downloads episodes 1,3,6,7,8,9,10,11
- **Downloading and Quality :**
- Files are downloaded to your Videos directory.
- Downloads are taken care of by the inbuilt downloader on default.
- Currently the download quality priority is as follows : [720p, 576p, 480p]
- ie, downloader first checks for 720p video, if 720p is not available checks for 576p and so on.
- If you are building from source and want to download anime in 1080p, open up 'ap-dlr.py' in any editor and add 1080p to the begining of the list defined using 'quality' variable in the code.
## Notes
- Make sure you have python, Firefox (and IDM, if you want idm to capture downlads) installed before downloading the script.
- This script is a work under progress and therefore may lack some features, please bear with it, and consider contributing if you have any fixes or improvements :relaxed:.
- **In Windows** the webdriver if found to misbehave if the script is forced to exit using `ctrl^c`. A good solution to this couldn't be found and a temporary fix have been implemented. And as such, please be noted that if you use ctrl^c to exit, your active firefox sessions or tabs have a good chance of crashing. (Note: ctrl^c doesn't have any issues in Linux)