Skip to main content

Grabs videos from youtube

Project description

Introduction
------------

This library, given an user, gets his/her videos saved on youtube.
For each video gets his name and his id.
Then, asks to pwnyoutube to generate a valid url for the "High Quality Video (MP4)"
Downloads it in a specified folder.

that's it!

Howto use it
------------

NB this test takes some minutes to run due to download time:
>>> from candy.candy import Candy
>>> import os

Create a Candy object:
>>> c = Candy('massimoazzolini', howmany=1)
>>> namedownloadedvideo = u'Plone video used for testing purposes'

Let's download it:
>>> c.run()
Analyzing page 1
downloaded Plone video used for testing purposes

>>> filename = '%s.mp4' % (namedownloadedvideo.replace('/','-'), )
>>> filename in os.listdir(os.path.abspath(os.curdir))
True

>>> os.remove(filename)


Disclaimers
------------
I'm not affiliated in any way with both pwnyoutube.com and YouTube.com.
"YouTube" is a copyright of YouTube, LLC.
"PWNyoutube": see http://pwnyoutube.com/


Changelog
=========


0.1.1 - download them all
--------------------------

- if the file is not fully downloaded, retry

0.1.0 - quick and dirty
----------------

- Initial release

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

candy.candy-0.1.1.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file candy.candy-0.1.1.tar.gz.

File metadata

  • Download URL: candy.candy-0.1.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for candy.candy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7ff43ce5688e1fd7ca882839cc787686360af8d628ec2534dcfd3224ec324750
MD5 22227ae7c5e142686975e3721e570537
BLAKE2b-256 effb20890755b1f774b045f0b4ad6d60687d4efee23442835984b97f98825310

See more details on using hashes here.

Supported by

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