ydown

A complete library for downloading YouTube videos
Download

ydown Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Public Domain
  • Price:
  • FREE
  • Publisher Name:
  • Freddyt
  • Publisher web site:

ydown Tags


ydown Description

ydown is a complete Python library for downloading YouTube videos. It can show the title of the video and the URL of the file video. It also have a good download function that shows you the download status:import timefrom ydown import ydownlib#THIS IS AN EXAMPLE OF THE USE OF ydownlib#OPEN THE VIDEOvideo=ydownlib.yvideo("http://www.youtube.com/watch?v=1T__uN5xmC0")#DISPLAY THE VIDEO TITLEprint video.getTitle()#DISPLAY THE FILE VIDEO URLprint video.getUrl()#START DOWNLOAD IN ANOTHER THREADvideo.download()#THIS WHILE DISPLAY THE DOWNLOAD STATUSwhile(1): if video.isStarted(): #START TRACING WHEN THE DOWNLOAD IN STARTED #DISPLAY THE PERCENT print str(video.getPercent()) + "%" #DISPLAY DOWNLOADED AND TOTAl FILE SIZE print str(video.getDownloaded()) + "/" + str(video.getTotalSize()) time.sleep(1) #SLEEP 1 SECOND AFTER EACH REPORT #IF THE DOWNLOAD IS FINISHED, QUIT if video.getPercent()==100: breakUSAGEUsing ydown is very simple:- FIRST CREATE A yvideo OBJECT: form ydown import ydownlib video=ydownlib.yvideo("YOUTUBE URL")- NOW YOU CAN USE ALL THE ydown FUNCTIONFUNCTIONSThis is the complete function list:- getTitle() this function return the name of the yvideo object loaded- getUrl() this function return the file's url of the yvideo object loaded- download() this function start the download in another thread- isStarted() return true if the download is started- getPercent() return the current download percent- getTotalSize() return the total file size of the video in bytes- getDownloaded() return the downloaded part of file in bytesVisit the sourceforge page 's homepage


ydown Related Software