youtuber


Nameyoutuber JSON
Version 0.1.4 PyPI version JSON
download
home_pagehttps://github.com/DSDanielPark/youtuber
SummarySupport tools including crawler, video editing, YouTube API, etc.
upload_time2023-03-30 03:39:57
maintainer
docs_urlNone
authorparkminwoo
requires_python>=3.6
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Python Package: YouTuber
![YouTuber](https://img.shields.io/badge/pypi-youtuber-blue)
![Pypi Version](https://img.shields.io/pypi/v/youtuber.svg)
[![Contributor Covenant](https://img.shields.io/badge/contributor%20covenant-v2.0%20adopted-black.svg)](code_of_conduct.md)
[![Python Version](https://img.shields.io/badge/python-3.6%2C3.7%2C3.8-black.svg)](code_of_conduct.md)
![Code convention](https://img.shields.io/badge/code%20convention-pep8-black)
![Black Fomatter](https://img.shields.io/badge/code%20style-black-000000.svg)
![](https://github.com/DSDanielPark/youtuber/blob/main/doc/imgs/example.png)


Contains several useful features that can be used for youtube related projects.
This package is intended to provide useful features for video editing, including crawling through the YouTube Data API v3 and Selenium.

<br>

# Installation
```
pip install youtuber
```

<br>

```python
from youtuber import AutoCrawler
DEVELOPER_KEY = "enter_your_dev_api_key"               # Enter your DEV API KEY at https://console.cloud.google.com/apis/api/youtube.googleapis.com/credentials?project=sincere-canyon-278402
CHOROME_PATH = r'C:\Program Files\chromedriver.exe'    # Enter path of 'chromdriver.exe' 

auto = AutoCrawler(DEVELOPER_KEY, CHOROME_PATH)
search_keyword = 'chatGPT'      # Youtube Search Keyword
max_link_len = 2                # How many videos you target to crawl?
max_comment_pg_len = 2          # How many comment pages you target to crawl?
save_path = './enter/any/path/result.csv'

df = auto.run(search_keyword, max_link_len, max_comment_pg_len, save_path)
```



# Tutorial
1. Main tutorial: https://github.com/DSDanielPark/youtuber/blob/main/doc/tutorial.ipynb
2. Sub tutorial folder: Tutorials for each function can be found in [this folder](https://github.com/DSDanielPark/youtuber/tree/main/doc). 


<br>

# Features
### 1. `YoutubeAPI`
Retrieve YouTube search results. <br>
You can get your 'Youtube Data API v3' key in [here](https://console.cloud.google.com/apis/api/youtube.googleapis.com/credentials?project=sincere-canyon-278402), and you can find some guide in [here.](https://developers.google.com/youtube/v3/getting-started?hl=ko)


```python
from youtuber import YoutubeAPI

DEVELOPER_KEY = "enter_your_api_key"
youtuber_v3 = YoutubeAPI(DEVELOPER_KEY)
links = youtuber_v3.get_links('chatGPT', 3) #YouTube Search Keyword = 'chatGPT', return 3 links.

links
['https://www.youtube.com/watch?v=xxxxx',
 'https://www.youtube.com/watch?v=xxxxx',
 'https://www.youtube.com/watch?v=xxxxx']
```

### 2. `YoutubeCrawler`
Retrieve comment data.
```python
from youtuber import YoutubeCrawler

chrome_driver = r'C:\Program Files\chromedriver.exe'
youtuber_crawl = YoutubeCrawler(chrome_driver)
df = youtuber_crawl.get_comment_df(links, 1) #if you enter 1, only 1 page of comments will be searched.

df #You can get pd.DataFrame object.
```



<br>

# References
[1] YouTube Data API v3: https://developers.google.com/youtube/v3/getting-started?hl=ko
 <br>
[2] Selenium python: https://selenium-python.readthedocs.io/

<br><br>


### `Important Warning:` All legal responsibilities associated with the use of the package lie with the user.
The Python package "youtuber" provides code for Python users to easily access data through the YouTube Data API v3 and Selenium. All licenses follow those of the API and dependent packages, and all responsibility for handling data and using the package lies with the user. There is no monetary compensation received for the use of this code, and it should be noted that there is no liability for the use of the code.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/DSDanielPark/youtuber",
    "name": "youtuber",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "",
    "author": "parkminwoo",
    "author_email": "parkminwoo1991@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/77/22/fd9b77c9d1fc52939d150210d070b5e57e712c276683934c9a8b33a0112e/youtuber-0.1.4.tar.gz",
    "platform": null,
    "description": "# Python Package: YouTuber\r\n![YouTuber](https://img.shields.io/badge/pypi-youtuber-blue)\r\n![Pypi Version](https://img.shields.io/pypi/v/youtuber.svg)\r\n[![Contributor Covenant](https://img.shields.io/badge/contributor%20covenant-v2.0%20adopted-black.svg)](code_of_conduct.md)\r\n[![Python Version](https://img.shields.io/badge/python-3.6%2C3.7%2C3.8-black.svg)](code_of_conduct.md)\r\n![Code convention](https://img.shields.io/badge/code%20convention-pep8-black)\r\n![Black Fomatter](https://img.shields.io/badge/code%20style-black-000000.svg)\r\n![](https://github.com/DSDanielPark/youtuber/blob/main/doc/imgs/example.png)\r\n\r\n\r\nContains several useful features that can be used for youtube related projects.\r\nThis package is intended to provide useful features for video editing, including crawling through the YouTube Data API v3 and Selenium.\r\n\r\n<br>\r\n\r\n# Installation\r\n```\r\npip install youtuber\r\n```\r\n\r\n<br>\r\n\r\n```python\r\nfrom youtuber import AutoCrawler\r\nDEVELOPER_KEY = \"enter_your_dev_api_key\"               # Enter your DEV API KEY at https://console.cloud.google.com/apis/api/youtube.googleapis.com/credentials?project=sincere-canyon-278402\r\nCHOROME_PATH = r'C:\\Program Files\\chromedriver.exe'    # Enter path of 'chromdriver.exe' \r\n\r\nauto = AutoCrawler(DEVELOPER_KEY, CHOROME_PATH)\r\nsearch_keyword = 'chatGPT'      # Youtube Search Keyword\r\nmax_link_len = 2                # How many videos you target to crawl?\r\nmax_comment_pg_len = 2          # How many comment pages you target to crawl?\r\nsave_path = './enter/any/path/result.csv'\r\n\r\ndf = auto.run(search_keyword, max_link_len, max_comment_pg_len, save_path)\r\n```\r\n\r\n\r\n\r\n# Tutorial\r\n1. Main tutorial: https://github.com/DSDanielPark/youtuber/blob/main/doc/tutorial.ipynb\r\n2. Sub tutorial folder: Tutorials for each function can be found in [this folder](https://github.com/DSDanielPark/youtuber/tree/main/doc). \r\n\r\n\r\n<br>\r\n\r\n# Features\r\n### 1. `YoutubeAPI`\r\nRetrieve YouTube search results. <br>\r\nYou can get your 'Youtube Data API v3' key in [here](https://console.cloud.google.com/apis/api/youtube.googleapis.com/credentials?project=sincere-canyon-278402), and you can find some guide in [here.](https://developers.google.com/youtube/v3/getting-started?hl=ko)\r\n\r\n\r\n```python\r\nfrom youtuber import YoutubeAPI\r\n\r\nDEVELOPER_KEY = \"enter_your_api_key\"\r\nyoutuber_v3 = YoutubeAPI(DEVELOPER_KEY)\r\nlinks = youtuber_v3.get_links('chatGPT', 3) #YouTube Search Keyword = 'chatGPT', return 3 links.\r\n\r\nlinks\r\n['https://www.youtube.com/watch?v=xxxxx',\r\n 'https://www.youtube.com/watch?v=xxxxx',\r\n 'https://www.youtube.com/watch?v=xxxxx']\r\n```\r\n\r\n### 2. `YoutubeCrawler`\r\nRetrieve comment data.\r\n```python\r\nfrom youtuber import YoutubeCrawler\r\n\r\nchrome_driver = r'C:\\Program Files\\chromedriver.exe'\r\nyoutuber_crawl = YoutubeCrawler(chrome_driver)\r\ndf = youtuber_crawl.get_comment_df(links, 1) #if you enter 1, only 1 page of comments will be searched.\r\n\r\ndf #You can get pd.DataFrame object.\r\n```\r\n\r\n\r\n\r\n<br>\r\n\r\n# References\r\n[1] YouTube Data API v3: https://developers.google.com/youtube/v3/getting-started?hl=ko\r\n <br>\r\n[2] Selenium python: https://selenium-python.readthedocs.io/\r\n\r\n<br><br>\r\n\r\n\r\n### `Important Warning:` All legal responsibilities associated with the use of the package lie with the user.\r\nThe Python package \"youtuber\" provides code for Python users to easily access data through the YouTube Data API v3 and Selenium. All licenses follow those of the API and dependent packages, and all responsibility for handling data and using the package lies with the user. There is no monetary compensation received for the use of this code, and it should be noted that there is no liability for the use of the code.\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Support tools including crawler, video editing, YouTube API, etc.",
    "version": "0.1.4",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7ffb5de11b1578a78486b804f1d893e2d54c67be48a3bfff33fd6bcd493773b8",
                "md5": "9590db9949081eabaa07db43b9ba4b59",
                "sha256": "a7bc5c04617adf78db7beef46b36663da3cae45064ae7860324f2514e49c93df"
            },
            "downloads": -1,
            "filename": "youtuber-0.1.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9590db9949081eabaa07db43b9ba4b59",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 6660,
            "upload_time": "2023-03-30T03:39:51",
            "upload_time_iso_8601": "2023-03-30T03:39:51.198972Z",
            "url": "https://files.pythonhosted.org/packages/7f/fb/5de11b1578a78486b804f1d893e2d54c67be48a3bfff33fd6bcd493773b8/youtuber-0.1.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7722fd9b77c9d1fc52939d150210d070b5e57e712c276683934c9a8b33a0112e",
                "md5": "bb17cde0b6e8caf04550c84ea4955d91",
                "sha256": "286801a21d1b1a1be8920773c7acb5e08096a7ea1f3c644662f550d83e40ab15"
            },
            "downloads": -1,
            "filename": "youtuber-0.1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "bb17cde0b6e8caf04550c84ea4955d91",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 5841,
            "upload_time": "2023-03-30T03:39:57",
            "upload_time_iso_8601": "2023-03-30T03:39:57.183461Z",
            "url": "https://files.pythonhosted.org/packages/77/22/fd9b77c9d1fc52939d150210d070b5e57e712c276683934c9a8b33a0112e/youtuber-0.1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-30 03:39:57",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "DSDanielPark",
    "github_project": "youtuber",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "youtuber"
}
        
Elapsed time: 0.06876s