-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main'
- Loading branch information
Showing
5 changed files
with
97 additions
and
94 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
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,64 +1,65 @@ | ||
# Anime/Serien Scraper | ||
|
||
Scraper for the Anime Hoster Aniworld and the Serien Hoster SerienStream | ||
|
||
This tool will download either all Seasons and Episodes of an anime from Aniworld.to | ||
or it will download all Seasons and Episodes of a serie from S.to | ||
|
||
How to use: | ||
|
||
- Clone the Repo | ||
- `pip install -r requirements.txt` | ||
- download or install [ffmpeg](https://ffmpeg.org) (If you download it put it in the root folder or src folder) | ||
|
||
- On Unix for easy use take the _run.sh_ file and edit the desired values | ||
- On Windows for easy use take the _run.bat_ file and past the desired values in the command line | ||
|
||
Manual usage with python: | ||
- You can either edit the `src/constants.py` file or pass the values as arguments to the `main.py` file | ||
|
||
Supported Arguments: | ||
- `--type <TYPE>`: Either "serie" or "anime" to switch between websites to scrape. | ||
- `--name <NAME>`: The name of the anime or serie you want to download. | ||
- `--lang <LANGUAGE>`: The language you want to download. Normaly "Deutsch", "Ger-Sub", "English" or "Eng-Sub". | ||
- `--dl-mode <DownloadMode>`: The type of content you want to download. Valid arguments are: Movies, Series, All. | ||
- `--season-override <SeasonOverride>`: Specify which season to Download. `0` download ALL seasons, | ||
`NUM` download only the specified season, `NUM+` download this season and beyond. | ||
- `--provider <ProviderOverride>`: Specify the provider to use. Valid arguments are: VOE, Streamtape and Vidoza. | ||
|
||
## Manual download | ||
If you get a error or only need a specific episode you can download it manually with the `Manual_download.py` script. | ||
|
||
Run it with the same arguments as you would main.py. | ||
- Edit the `src/constants.py` and change the `episode_override` to the desired episode. | ||
- Run `python Manual_download.py <TYPE> <NAME> <LANGUAGE> <DownloadMode> [SeasonOverride] [ProviderOverride]` | ||
|
||
## Values/Overrides | ||
|
||
### Required: | ||
|
||
- type_of_media: Either "serie" or "anime" so the tool uses the correspondig url | ||
- name: Enter the anime or serie name you want to download. It has to be in the naming scheme _word-word-word_. | ||
- language: Determine the desired language of the files. Common options are: "Deutsch", "Ger-Sub" and "English" | ||
|
||
### Optional: | ||
|
||
- dlMode: Choose the type of Content you want to download. Valid arguments are: Movies, Series, All. Default is Series. | ||
- season_override: Specify which season to Download. 0 is the Default and will download all Seasons. | ||
|
||
## Constants | ||
|
||
- episode_override: Specify which episode to start downloading. 0 is the Default and will download all Episodes. | ||
- ddos_protection_calc: How many episodes to download before waiting 60 seconds. Default 4. | ||
- ddos_wait_timer: How long to wait until next download batch starts. Default 60. | ||
- output_path: Specify the output path. Default is the current working directory/Name-Of-Series. | ||
# Anime/Series Scraper | ||
|
||
This tool enables you to scrape and download all seasons and episodes of anime from Aniworld.to or series from SerienStream (S.to). | ||
|
||
## How to Use | ||
|
||
1. Clone the repository. | ||
2. Install dependencies: | ||
```bash | ||
pip install -r requirements.txt | ||
``` | ||
3. Download or install [FFmpeg](https://ffmpeg.org): | ||
- If downloaded, place it in the root or `src` folder. | ||
4. Platform-specific setup: | ||
- **Unix:** Edit the `_run.sh` file with desired values for easy execution. | ||
- **Windows:** Edit and run the `_run.bat` file, entering the desired values directly into the command line. | ||
|
||
### Manual Usage with Python | ||
You can: | ||
- Edit the `src/constants.py` file. | ||
- Pass arguments directly to the `main.py` script. | ||
|
||
#### Supported Arguments | ||
- `--type <TYPE>`: Specify "serie" or "anime" to select the website to scrape. | ||
- `--name <NAME>`: The name of the anime or series to download. | ||
- `--lang <LANGUAGE>`: Desired language (e.g., "Deutsch", "Ger-Sub", "English", or "Eng-Sub"). | ||
- `--dl-mode <DownloadMode>`: Content type to download (e.g., Movies, Series, All). | ||
- `--season-override <SeasonOverride>`: Specify seasons to download: | ||
- `0`: Download all seasons. | ||
- `NUM`: Download only the specified season. | ||
- `NUM+`: Download this season and all subsequent seasons. | ||
- `--provider <ProviderOverride>`: Specify the content provider (e.g., VOE, Streamtape, or Vidoza). | ||
|
||
## Manual Download | ||
If errors occur or only specific episodes are needed, use the `Manual_download.py` script: | ||
|
||
1. Edit `src/constants.py` and set `episode_override` to the desired episode. | ||
2. Run the script: | ||
```bash | ||
python Manual_download.py <TYPE> <NAME> <LANGUAGE> <DownloadMode> [SeasonOverride] [ProviderOverride] | ||
``` | ||
|
||
## Configuration Values | ||
|
||
### Required | ||
- `type_of_media`: "serie" or "anime" to select the correct URL. | ||
- `name`: The name of the anime or series, formatted as `word-word-word`. | ||
- `language`: Desired language of the files (e.g., "Deutsch", "Ger-Sub", "English"). | ||
|
||
### Optional | ||
- `dlMode`: Content type to download (Movies, Series, All; default: Series). | ||
- `season_override`: Specify the season(s) to download (default: 0 for all seasons). | ||
|
||
### Constants | ||
- `episode_override`: Specify the starting episode (default: 0 for all episodes). | ||
- `ddos_protection_calc`: Number of episodes to download before pausing (default: 4). | ||
- `ddos_wait_timer`: Wait time (in seconds) before resuming downloads (default: 60). | ||
- `output_path`: Output directory (default: current working directory/Series-Name). | ||
|
||
## Support | ||
Please create an issue in the repository for assistance. | ||
|
||
Please create a Issue. | ||
|
||
## Special Thanks: | ||
|
||
Thank you to [Michtdu](https://github.com/Michtdu) for the workaround and code for the Captcha! | ||
|
||
Thank you [speedyconzales](https://github.com/speedyconzales) for adding S.to support | ||
## Special Thanks | ||
- [Michtdu](https://github.com/Michtdu) for the workaround and Captcha code. | ||
- [speedyconzales](https://github.com/speedyconzales) for adding support for S.to. |
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
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
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