Skip to content

gaspa93/youtube-scraper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

youtube-scraper

Provide information for youtube video metadata (title, user, views, likes, dislikes, publish date) and youtube channel metadata (name, subscribers, description, views, join date, links).

Usage

To scrape Youtube video data, use scrape_video endpoint:

>>> from youtube_scraper.scraper import scrape_video
>>> data = scrape_video('http://youtube.com/watch?v=7dlcxXxDGUI')
>>> print(data.poster)
'TheViperAOC'

To scrape Youtube channel data, use scrape_channel endpoint. you can get either the channel metadata or the channel videos metadata:

>>> from youtube_scraper.scraper import scrape_channel
>>> channel = scrape_channel('https://www.youtube.com/user/teatroallascala')
>>> channel.get_channel_metadata()
>>> print(channel.name)
'Teatro all Scala'
>>> channel.get_channel_videos()
>>>for v in channel.videos:
>>>    print(v.id, v.title, v.duration, v.published, v.like, v.dislike)

License

Copyright (c) 2015 Jon Robison

See included LICENSE for licensing information

About

Scrape metadata from youtube videos and channels

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%