Skip to main content

Support tools including crawler, video editing, YouTube API, etc.

Project description

Python Package: YouTuber

YouTuber Pypi Version Contributor Covenant Python Version Code convention Black Fomatter

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.


Installation

pip install youtuber

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.

Features

1. YoutubeAPI

Retrieve YouTube search results.
You can get your 'Youtube Data API v3' key in here, and you can find some guide in here.

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.

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.

References

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



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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

youtuber-0.1.2.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

youtuber-0.1.2-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page