scrappo


Namescrappo JSON
Version 1.1.1 PyPI version JSON
download
home_pagehttps://github.com/zaytiri/scrappo
SummaryDownload any video from a specific URL.
upload_time2023-05-24 07:14:49
maintainer
docs_urlNone
authorzaytiri
requires_python>=3.10.6
license
keywords video download tool scrapping scrap cli url python
VCS
bugtrack_url
requirements setuptools PyYAML margument requests progress
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![Downloads](https://pepy.tech/badge/scrappo)](https://pepy.tech/project/scrappo)

# Scrappo - Video Downloader Tool
## Table of Contents

- [Description](#description)
- [Features](#features)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Usage](#usage)
- [Support](#support)
- [License](#license)
- [Status](#status)

<a name="description"></a>

## Description

Scrappo downloads any video from a given URL or a file containing a list of URLs. These URLs must be the actual video.

It's possible to also distinguish between a series or movies. The difference between these two options is that a series expects to have at least 1 season, therefore each season will be  separate into its own folder containing each related episode.

<a name="features"></a>

## Features

| Feature                                                                          |
|:---------------------------------------------------------------------------------|
| can be input a .txt file containing a list of URLs                               |
| download movies, series or related content                                       |
| series will be separate into season folders                                      |
| movies can also be separated in their own folder                                 |
| videos already downloaded will be skipped                                        |
| any errors regarding the videos will not stop program and will appear in the end |
| progress bar while downloading                                                   |


Any new features are **_very_** welcomed.

### Future features

Nothing at the moment.

<a name="prerequisites"></a>

## Prerequisites

[Python 3](https://www.python.org/downloads/) must be installed.

<a name="installation"></a>

## Installation

```
pip --no-cache-dir install scrappo
```

or,

```
pip3 --no-cache-dir install scrappo
```
<a name="usage"></a>
## Usage

| Command (shortcut)        | Command (full) | Required       | Description                                                                       |
|:--------------------------|----------------|----------------|:----------------------------------------------------------------------------------|
| -u                        | --urls         | **REQUIRED**   | a list of URLs or a path to a .txt file containing a list of URLs.                |
| -o                        | --output       | **REQUIRED**   | the path to the folder in which the videos will be downloaded.                    |
| -t                        | --type         | **REQUIRED**   | the type of the videos to download. Choices are "movies" or "series".             |
| --separate/--no-separate  | ---            | **OPTIONAL**   | if enabled, it will separate every movie into his own folder.                     |
| --shutdown/--no-shutdown  | ---            | **OPTIONAL**   | enable or disable shutting down computer when program is done                     |

---
### Important

#### URLs .txt file
The file containing a list of URLs must obey to certain requirements.

```text
nameOfVideo1:::https://someurl.withavideo.org//video1
nameOfVideo2:::https://someurl.withavideo.org//video2
https://someurl.withavideo.org//video3
https://someurl.withavideo.org//video4
nameOfVideo5:::https://someurl.withavideo.org//video5

https://someurl.withavideo.org//video6
nameOfVideo7:::https://someurl.withavideo.org//video7
```

- It could be added the name the file should have by inserting ':::' between the name and the URL.
- If a URL does not have ':::', its assumed the name of the file will be 'movie#' or 'episode#' (# being the number according to the position (line) the URL has in the file), depending on if the type is 'movies' or 'series', respectively.
- If type is 'series', the seasons should be separated by blank lines. This means, for instance in the example above, the season 1 has 5 episodes and the season 2 has 2 episodes. These episodes will be separated by folders with the name of corresponding season.
- If type is 'movies', any blank lines will be ignored.

---

The following command will download all given URLs with the type 'movies'. These videos will be downloaded in the 'C:\Users\<username>\Desktop\movies' folder:
```bash
scrappo --type movies --output "C:\Users\<username>\Desktop\movies" --urls "nameOfVideo1:::https://someurl.withavideo.org//video1" "nameOfVideo2:::https://someurl.withavideo.org//video2"
```
The same naming option is also available when not using a file.
The command above will download 2 videos from two different sources which the names of those video files will be 'nameOfVideo1' and 'nameOfVideo2', respectively.

The command below will do the same thing but separating each movie into its own folder. The folder name will be the same name as the video file name.
```bash
scrappo --type movies --output "C:\Users\<username>\Desktop\movies" --urls "nameOfVideo1:::https://someurl.withavideo.org//video1" "nameOfVideo2:::https://someurl.withavideo.org//video2" --separate
```

The following command will download all URLs contained in the 'C:\Users\<username>\Desktop\moviesToDownload.txt' file. Can also be used the '--separate' argument.
```bash
scrappo --type movies --output "C:\Users\<username>\Desktop\movies" --urls "C:\Users\<username>\Desktop\moviesToDownload.txt"
```

The command below will download all URLs contained in the 'C:\Users\<username>\Desktop\seriesToDownload.txt'. Inside 'C:\Users\<username>\Desktop\series' folder there will be at least a folder named 'season1' containing all related episodes. Keep in mind that the file needs to contain a blank line to indicate separation of seasons.
```bash
scrappo --type series --output "C:\Users\<username>\Desktop\series" --urls "C:\Users\<username>\Desktop\seriesToDownload.txt"
```

If '--shutdown' argument is used, when all videos are downloaded, the device will be shut down.
```bash
scrappo --type series --output "C:\Users\<username>\Desktop\series" --urls "C:\Users\<username>\Desktop\seriesToDownload.txt" --shutdown
```

<a name="support"></a>
## Support
 If any problems occurs, feel free to open an issue.

<a name="license"></a>
## License

[MIT](https://choosealicense.com/licenses/mit/)

<a name="status"></a>

## Status

Currently maintaining it.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/zaytiri/scrappo",
    "name": "scrappo",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10.6",
    "maintainer_email": "",
    "keywords": "video,download,tool,scrapping,scrap,cli,url python",
    "author": "zaytiri",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/8d/16/4696848204706aa45a6b90e0748df73015684c1279681b08d9cfc7e6b04a/scrappo-1.1.1.tar.gz",
    "platform": null,
    "description": "[![Downloads](https://pepy.tech/badge/scrappo)](https://pepy.tech/project/scrappo)\n\n# Scrappo - Video Downloader Tool\n## Table of Contents\n\n- [Description](#description)\n- [Features](#features)\n- [Prerequisites](#prerequisites)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Support](#support)\n- [License](#license)\n- [Status](#status)\n\n<a name=\"description\"></a>\n\n## Description\n\nScrappo downloads any video from a given URL or a file containing a list of URLs. These URLs must be the actual video.\n\nIt's possible to also distinguish between a series or movies. The difference between these two options is that a series expects to have at least 1 season, therefore each season will be  separate into its own folder containing each related episode.\n\n<a name=\"features\"></a>\n\n## Features\n\n| Feature                                                                          |\n|:---------------------------------------------------------------------------------|\n| can be input a .txt file containing a list of URLs                               |\n| download movies, series or related content                                       |\n| series will be separate into season folders                                      |\n| movies can also be separated in their own folder                                 |\n| videos already downloaded will be skipped                                        |\n| any errors regarding the videos will not stop program and will appear in the end |\n| progress bar while downloading                                                   |\n\n\nAny new features are **_very_** welcomed.\n\n### Future features\n\nNothing at the moment.\n\n<a name=\"prerequisites\"></a>\n\n## Prerequisites\n\n[Python 3](https://www.python.org/downloads/) must be installed.\n\n<a name=\"installation\"></a>\n\n## Installation\n\n```\npip --no-cache-dir install scrappo\n```\n\nor,\n\n```\npip3 --no-cache-dir install scrappo\n```\n<a name=\"usage\"></a>\n## Usage\n\n| Command (shortcut)        | Command (full) | Required       | Description                                                                       |\n|:--------------------------|----------------|----------------|:----------------------------------------------------------------------------------|\n| -u                        | --urls         | **REQUIRED**   | a list of URLs or a path to a .txt file containing a list of URLs.                |\n| -o                        | --output       | **REQUIRED**   | the path to the folder in which the videos will be downloaded.                    |\n| -t                        | --type         | **REQUIRED**   | the type of the videos to download. Choices are \"movies\" or \"series\".             |\n| --separate/--no-separate  | ---            | **OPTIONAL**   | if enabled, it will separate every movie into his own folder.                     |\n| --shutdown/--no-shutdown  | ---            | **OPTIONAL**   | enable or disable shutting down computer when program is done                     |\n\n---\n### Important\n\n#### URLs .txt file\nThe file containing a list of URLs must obey to certain requirements.\n\n```text\nnameOfVideo1:::https://someurl.withavideo.org//video1\nnameOfVideo2:::https://someurl.withavideo.org//video2\nhttps://someurl.withavideo.org//video3\nhttps://someurl.withavideo.org//video4\nnameOfVideo5:::https://someurl.withavideo.org//video5\n\nhttps://someurl.withavideo.org//video6\nnameOfVideo7:::https://someurl.withavideo.org//video7\n```\n\n- It could be added the name the file should have by inserting ':::' between the name and the URL.\n- If a URL does not have ':::', its assumed the name of the file will be 'movie#' or 'episode#' (# being the number according to the position (line) the URL has in the file), depending on if the type is 'movies' or 'series', respectively.\n- If type is 'series', the seasons should be separated by blank lines. This means, for instance in the example above, the season 1 has 5 episodes and the season 2 has 2 episodes. These episodes will be separated by folders with the name of corresponding season.\n- If type is 'movies', any blank lines will be ignored.\n\n---\n\nThe following command will download all given URLs with the type 'movies'. These videos will be downloaded in the 'C:\\Users\\<username>\\Desktop\\movies' folder:\n```bash\nscrappo --type movies --output \"C:\\Users\\<username>\\Desktop\\movies\" --urls \"nameOfVideo1:::https://someurl.withavideo.org//video1\" \"nameOfVideo2:::https://someurl.withavideo.org//video2\"\n```\nThe same naming option is also available when not using a file.\nThe command above will download 2 videos from two different sources which the names of those video files will be 'nameOfVideo1' and 'nameOfVideo2', respectively.\n\nThe command below will do the same thing but separating each movie into its own folder. The folder name will be the same name as the video file name.\n```bash\nscrappo --type movies --output \"C:\\Users\\<username>\\Desktop\\movies\" --urls \"nameOfVideo1:::https://someurl.withavideo.org//video1\" \"nameOfVideo2:::https://someurl.withavideo.org//video2\" --separate\n```\n\nThe following command will download all URLs contained in the 'C:\\Users\\<username>\\Desktop\\moviesToDownload.txt' file. Can also be used the '--separate' argument.\n```bash\nscrappo --type movies --output \"C:\\Users\\<username>\\Desktop\\movies\" --urls \"C:\\Users\\<username>\\Desktop\\moviesToDownload.txt\"\n```\n\nThe command below will download all URLs contained in the 'C:\\Users\\<username>\\Desktop\\seriesToDownload.txt'. Inside 'C:\\Users\\<username>\\Desktop\\series' folder there will be at least a folder named 'season1' containing all related episodes. Keep in mind that the file needs to contain a blank line to indicate separation of seasons.\n```bash\nscrappo --type series --output \"C:\\Users\\<username>\\Desktop\\series\" --urls \"C:\\Users\\<username>\\Desktop\\seriesToDownload.txt\"\n```\n\nIf '--shutdown' argument is used, when all videos are downloaded, the device will be shut down.\n```bash\nscrappo --type series --output \"C:\\Users\\<username>\\Desktop\\series\" --urls \"C:\\Users\\<username>\\Desktop\\seriesToDownload.txt\" --shutdown\n```\n\n<a name=\"support\"></a>\n## Support\n If any problems occurs, feel free to open an issue.\n\n<a name=\"license\"></a>\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n\n<a name=\"status\"></a>\n\n## Status\n\nCurrently maintaining it.\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Download any video from a specific URL.",
    "version": "1.1.1",
    "project_urls": {
        "Changelog": "https://github.com/zaytiri/scrappo/blob/main/CHANGELOG.md",
        "GitHub": "https://github.com/zaytiri/scrappo",
        "Homepage": "https://github.com/zaytiri/scrappo"
    },
    "split_keywords": [
        "video",
        "download",
        "tool",
        "scrapping",
        "scrap",
        "cli",
        "url python"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1af7702ed3db576072b6cd290f934d90b109a67e06a5e6e812088e6c814648dd",
                "md5": "194defd764278b42148f1148909e0697",
                "sha256": "9a85367ddfdccc5f0f6a3428fed6198fc418172819947519da6741972e47a681"
            },
            "downloads": -1,
            "filename": "scrappo-1.1.1-py3.11.egg",
            "has_sig": false,
            "md5_digest": "194defd764278b42148f1148909e0697",
            "packagetype": "bdist_egg",
            "python_version": "1.1.1",
            "requires_python": ">=3.10.6",
            "size": 37630,
            "upload_time": "2023-05-24T07:14:47",
            "upload_time_iso_8601": "2023-05-24T07:14:47.617348Z",
            "url": "https://files.pythonhosted.org/packages/1a/f7/702ed3db576072b6cd290f934d90b109a67e06a5e6e812088e6c814648dd/scrappo-1.1.1-py3.11.egg",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "38b5db853a5728dccd6ece085a53e4d82cfbe5f79a24618cd919c0e16eecf373",
                "md5": "23c04c7e105cc8e613e42f8eb9b69a03",
                "sha256": "a6ef81d48334180e286b28cc1a02cbda033f75733c6fba832a756ef5e31ab611"
            },
            "downloads": -1,
            "filename": "scrappo-1.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "23c04c7e105cc8e613e42f8eb9b69a03",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10.6",
            "size": 14801,
            "upload_time": "2023-05-24T07:14:45",
            "upload_time_iso_8601": "2023-05-24T07:14:45.840618Z",
            "url": "https://files.pythonhosted.org/packages/38/b5/db853a5728dccd6ece085a53e4d82cfbe5f79a24618cd919c0e16eecf373/scrappo-1.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8d164696848204706aa45a6b90e0748df73015684c1279681b08d9cfc7e6b04a",
                "md5": "9acfcb7f4e965da6d99e83d2a633753f",
                "sha256": "fc6235211c2ee2e34456c2a5c493b9859ffd8a24ac753007782c95414ebd28e7"
            },
            "downloads": -1,
            "filename": "scrappo-1.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "9acfcb7f4e965da6d99e83d2a633753f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10.6",
            "size": 12512,
            "upload_time": "2023-05-24T07:14:49",
            "upload_time_iso_8601": "2023-05-24T07:14:49.947028Z",
            "url": "https://files.pythonhosted.org/packages/8d/16/4696848204706aa45a6b90e0748df73015684c1279681b08d9cfc7e6b04a/scrappo-1.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-24 07:14:49",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "zaytiri",
    "github_project": "scrappo",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "setuptools",
            "specs": [
                [
                    ">=",
                    "65.5.1"
                ]
            ]
        },
        {
            "name": "PyYAML",
            "specs": [
                [
                    "~=",
                    "6.0"
                ]
            ]
        },
        {
            "name": "margument",
            "specs": [
                [
                    ">=",
                    "1.1.1"
                ]
            ]
        },
        {
            "name": "requests",
            "specs": [
                [
                    ">=",
                    "2.31.0"
                ]
            ]
        },
        {
            "name": "progress",
            "specs": [
                [
                    "~=",
                    "1.6"
                ]
            ]
        }
    ],
    "lcname": "scrappo"
}
        
Elapsed time: 0.07918s