Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sanmeet007/anime-scrapper
Cool anime scrapper uses gogo-play.tv website to scrap your favorite anime and download all episodes !
https://github.com/sanmeet007/anime-scrapper
anime anime-scraper downloader python scraper selenium
Last synced: about 2 hours ago
JSON representation
Cool anime scrapper uses gogo-play.tv website to scrap your favorite anime and download all episodes !
- Host: GitHub
- URL: https://github.com/sanmeet007/anime-scrapper
- Owner: Sanmeet007
- License: gpl-3.0
- Created: 2022-05-03T20:09:29.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-28T17:09:53.000Z (6 months ago)
- Last Synced: 2024-07-28T18:27:15.827Z (6 months ago)
- Topics: anime, anime-scraper, downloader, python, scraper, selenium
- Language: Python
- Homepage:
- Size: 44.9 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Anime scrapper
Clean anime scrapper & downloader made using selenium automation.
![AS](https://i.ibb.co/G0ZJkmp/poster.png)
Bulk download your favourite anime episodes from gogoanime website all you need to do is setup some environment variables (basically options for downloading) and use the CLI.
Sample usage :
```bash
py main.py --link="LINK" --quality="QUALITY" --start="START" --max="MAX"
```## Quick Setup
Before you begin to automate your favourite anime downloading you need to install the required dependencies.
### 1. Cloning the repo
The first step would be to clone the repo.
### 2. Getting Dependencies
- `ChromeDriver.exe` : Required by selenium to control chrome browser.
- `Modules` :
- Selenium : Core for automation.
- Cloudscrapper : For getting html.
- BeautifulSoup : Used for scrapping.
- Python Dotenv : For loading env.
- Cliopts : For parsing cli argurments.Chrome diver download link : [Official download link](https://chromedriver.chromium.org/downloads)
> You need to download the exact version of chromedriver as your chrome browser. For checking the version of your chrome browser , you can type `chrome://version/` in search bar and hit enter to check the version.
### 3. Installing packages
All packages are listed in the requirements.txt all you need to so is run this simple command :
```bash
pip install -r requirements.txt
```> This command recursively downloads the required python packages and install them.
```txt
Dev tip : Use a virtual environment to prevent making the packages global which might cause conflicts !
```### 3. Setting up environment variables
After successfully installing chrome driver and python packages , you need to setup some environment variables to get things ready to be in action. You can do so by filling up required envs values in `.env` file.
Environment vars :
- `WEBDRIVER_PATH` : Requires the absolute path of chromedriver.exe file you downloaded.
- `DOWNLOAD_DIRECTORY` : Sets the default download directory path to which the downloads will be stored.
- `ANIME_DOWNLOAD_LINK` : Sets the anime download link.
- `DOWNLOAD_QUALITY` : Sets the quality.> You need to get the link for `ANIME_DOWNLOAD_LINK` from the `embtaku.pro` ( former gogo-play.tv) website in an exact pattern like :
> Accepted values for `DOWNLOAD_QUALITY` are 420p , 720p, 360p & 1080p.
Sample of a .env file :
```.env
WEBDRIVER_PATH = "C:\chromedriver\chromedriver.exe"
DOWNLOAD_DIRECTORY = "D:\Anime\One-Piece"
ANIME_DOWNLOAD_LINK = "https://embtaku.pro/videos/one-piece-episode"
DOWNLOAD_QUALITY = "720p"
```### 4. Downloading
You need to run these following commands which are basically flags .
#### Flags
- `link` : Used to replace the original `ANIME_DOWNLOAD_LINK` if present in .env file with the param passed in cli.
- `start` : Sets the episode from which the loop starts.
- `max` : Sets the maximum episodes to download . Basically helps in creating a range from start till start + max##### Usage
Without shorthand args
```bash
py main.py --link="https://embtaku.pro/videos/gintama-episode" --quality="720p" --start=1 --max=10 --downloads_dir="C:/User/Downloads"
```With shorthand args
```bash
py main.py -l "LINK" -q "QUALITY" -s "START" -m "MAX" -d "DOWNLOADS_DIR"
```## Developer Contact
If any queries feel to get in touch with me .
Email : [email protected]HAPPY ANIME WATCHING :-)