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.2 - urlopen did not conviced me at all
--------------------------
- used urlretrieve
0.1.1 - download them all
--------------------------
- if the file is not fully downloaded, retry
0.1.0 - quick and dirty
----------------
- Initial release
------------
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.2 - urlopen did not conviced me at all
--------------------------
- used urlretrieve
0.1.1 - download them all
--------------------------
- if the file is not fully downloaded, retry
0.1.0 - quick and dirty
----------------
- Initial release
Metadata
Release files for candy.candy 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| candy.candy-0.1.2.tar.gz | 3.7 kB | Details |
Release files / candy.candy-0.1.2.tar.gz
| Download URL | candy.candy-0.1.2.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
12db7305296f4e24fd4c3fa985715fe54fb490ba9b7368af556f4bdface1045e
|
|
BLAKE2b-256 checksum How to use checksums |
d5f18ee28570ea2307a7cfa467175613f123bad468b9d35097f646603b126ca1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |