tube-scrapy


Nametube-scrapy JSON
Version 1.0.0b3 PyPI version JSON
download
home_page
SummaryA python package to webscraping for youtube video data as title, video url, thumbnail url, and number of views.
upload_time2023-03-20 22:48:32
maintainer
docs_urlNone
author
requires_python>=3.7
licenseMIT License Copyright (c) 2023 Abner Silveira de Freitas Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords webscraping youtube
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # TubeScrapy
A python package to webscrap for youtube video data as title, video url, thumbnail url, and number of views. The package runs packages  `Selenium` and `Webdriver` to access Youtube page and copy videos informations. The process is expensive and remains about 5 seconds for search. The first search could take a little more time because package `Webdriver` will download and install the web driver to control Chrome browser.

### Python minimal version
- Python 3.8

### Python packages required
- Selenium 4.8.2
- Webdriver-manager 3.8.5

## Examples
First of all, import module:
~~~python
import tube_scrapy
~~~
Create a new instance of `TubeScrapy`:
~~~python
ts = TubeScrapy()
~~~
Create a variable to save video info searched using method `search_video_info()`:
~~~python
videos_infos = ts.search_video_info(
    search_title = 'Cheia de Manias Raça Negra', # search title or query
    add_to_search = 'karaoke', # will basiclly be concatened with search_title
    search_range = 5 # quantity of videos searched
)
~~~
The videos informations will be returned in a `list` of objects `ScrapedVideoInfo`, which have this structure:
~~~python
ScrapedVideoInfo(
    title = title,              # youtube video title
    video_url = video_url,      # youtube video url
    thumbnail_url= thumbnail,   # video thumbnail url
    views = views               # video number of views
)
~~~
This is it, good coding! ;-) For more information, visit the project [repository](https://github.com/defreitasabner/tube_scrapy) and relate any [issue](https://github.com/defreitasabner/tube_scrapy/issues), please.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "tube-scrapy",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "webscraping,youtube",
    "author": "",
    "author_email": "Abner Freitas <defreitasabner@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/6f/ef/1cae19c132456198a3ccf3532d657c0d0c985231c8f4fa31258cb012020e/tube_scrapy-1.0.0b3.tar.gz",
    "platform": null,
    "description": "# TubeScrapy\nA python package to webscrap for youtube video data as title, video url, thumbnail url, and number of views. The package runs packages  `Selenium` and `Webdriver` to access Youtube page and copy videos informations. The process is expensive and remains about 5 seconds for search. The first search could take a little more time because package `Webdriver` will download and install the web driver to control Chrome browser.\n\n### Python minimal version\n- Python 3.8\n\n### Python packages required\n- Selenium 4.8.2\n- Webdriver-manager 3.8.5\n\n## Examples\nFirst of all, import module:\n~~~python\nimport tube_scrapy\n~~~\nCreate a new instance of `TubeScrapy`:\n~~~python\nts = TubeScrapy()\n~~~\nCreate a variable to save video info searched using method `search_video_info()`:\n~~~python\nvideos_infos = ts.search_video_info(\n    search_title = 'Cheia de Manias Ra\u00e7a Negra', # search title or query\n    add_to_search = 'karaoke', # will basiclly be concatened with search_title\n    search_range = 5 # quantity of videos searched\n)\n~~~\nThe videos informations will be returned in a `list` of objects `ScrapedVideoInfo`, which have this structure:\n~~~python\nScrapedVideoInfo(\n    title = title,              # youtube video title\n    video_url = video_url,      # youtube video url\n    thumbnail_url= thumbnail,   # video thumbnail url\n    views = views               # video number of views\n)\n~~~\nThis is it, good coding! ;-) For more information, visit the project [repository](https://github.com/defreitasabner/tube_scrapy) and relate any [issue](https://github.com/defreitasabner/tube_scrapy/issues), please.\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2023 Abner Silveira de Freitas  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "A python package to webscraping for youtube video data as title, video url, thumbnail url, and number of views.",
    "version": "1.0.0b3",
    "split_keywords": [
        "webscraping",
        "youtube"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4d261de6f00a0604c4c5008e7f9e86fd68ddb5b0bbf3de8354c905781eefee27",
                "md5": "f863850d4fd0aa77dc765b25b0951e0d",
                "sha256": "2fd54bbd875e79f1f89490c34108382a1b6399b8bf413c1e30b902a4d411e623"
            },
            "downloads": -1,
            "filename": "tube_scrapy-1.0.0b3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f863850d4fd0aa77dc765b25b0951e0d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 6183,
            "upload_time": "2023-03-20T22:48:30",
            "upload_time_iso_8601": "2023-03-20T22:48:30.814750Z",
            "url": "https://files.pythonhosted.org/packages/4d/26/1de6f00a0604c4c5008e7f9e86fd68ddb5b0bbf3de8354c905781eefee27/tube_scrapy-1.0.0b3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6fef1cae19c132456198a3ccf3532d657c0d0c985231c8f4fa31258cb012020e",
                "md5": "469d0a1d365d27d12119d640fca593ef",
                "sha256": "4241151c8177d4a12d6d6b32d2bad26aba8ed82a0c0b1fb2101b9a00c8942eb3"
            },
            "downloads": -1,
            "filename": "tube_scrapy-1.0.0b3.tar.gz",
            "has_sig": false,
            "md5_digest": "469d0a1d365d27d12119d640fca593ef",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 5906,
            "upload_time": "2023-03-20T22:48:32",
            "upload_time_iso_8601": "2023-03-20T22:48:32.699181Z",
            "url": "https://files.pythonhosted.org/packages/6f/ef/1cae19c132456198a3ccf3532d657c0d0c985231c8f4fa31258cb012020e/tube_scrapy-1.0.0b3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-20 22:48:32",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "tube-scrapy"
}
        
Elapsed time: 0.14669s