Problem with extract_urls
Here is my problem:
$ python
>>> from putio import *
>>> api = Api("XXXXX", "XXXXXX")
>>> bucket = api.bucket()
>>> bucket.extract_urls("http://google.com http://en.wikipedia.org")
[]
Did I miss something ?
Log in to Put.io
Here is my problem:
$ python
>>> from putio import *
>>> api = Api("XXXXX", "XXXXXX")
>>> bucket = api.bucket()
>>> bucket.extract_urls("http://google.com http://en.wikipedia.org")
[]
Did I miss something ?
Support Staff 2 Posted by aybars.badur on 05 Dec, 2011 05:12 PM
Hi,
Sorry for the late reply, we somehow missed your ticket.
And no, it wont work like that, it passes links to text/html, text/xml and tries to find links with .rar, .zip, .mp3, .torrent, .mov etc.. extension. there is no downloadable link in the text it returns an empty array.
so this should work because is a downloadable content.
>>> bucket.extract_urls("the war of the worlds: http://www.gutenberg.org/files/36/36.zip") [u'http://www.gutenberg.org/files/36/36.zip']thanks,