This project is a web scraper designed to scrape and download videos from StreamTape. It utilizes Selenium for scraping and Requests for downloading the video files.
- Video Storage: Downloaded videos are saved in the
videos/
folder, with file names extracted from the webpage. - Error Handling: Robust error handling ensures the script retries downloading if it encounters errors.
├── scraper.py
Main script for scraping and downloading StreamTape videos (single-threaded).\
- Clone the repository:
git clone https://github.com/satyampandey444/Want_to_download_videos_from_streamtape
cd Want_to_download_videos_from_streamtape
- Create a virtual environment (using pipenv for dependency management):
pipenv shell
- Install the dependencies:
pip install -r requirements.txt
-
Prepare the environment: Make sure you have Google Chrome installed (version 115 or higher). You can specify the path to Chrome WebDriver if needed. Adjust the environment variables in the .env file if necessary.
-
Provide the URLs to download: Ensure your links.txt file contains the StreamTape video URLs (one URL per line). The scraper will read this file to fetch and download the videos.
-
Run the Video Downloader:
If you want to download videos one at a time, run the following command:
python3 scraper.py