Skip to content

theanine/youtube-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ytsearch

A simple python utility that searches Youtube using the Youtube Data API. Created originally for usage with my IRC bot, ubot. but can be used separately.

Setup

To use this program you must first create an API key as shown by this video. You do not need to create an OAuth 2.0 client ID & secret, just an API key.

Once you've created the API key set it locally with either:

*NIX: $ export DEVELOPER_KEY="yourapikeygoeshere"

Windows: C:\> set DEVELOPER_KEY="yourapikeygoeshere"

Lastly, this program requires the Google API Client Library for Python. Available from pip or easy_install. Complete installation instructions are available here.

sudo pip install --upgrade google-api-python-client sudo pip install --upgrade youtube_dl

Usage

Basic usage is as follows:

	>>> from ytsearch import youtubeSearch
	>>> query = 'Up Trailer'
	>>> youtubeSearch(query)
	'Title: UP Official Movie Trailer #3 | Link: http://youtu.be/pkqzFUhGPJg'

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages