Problem with extract_urls

Daniel Duong's Avatar

Daniel Duong

30 Nov, 2011 01:49 AM via web

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 ?

  1. Support Staff 2 Posted by aybars.badur on 05 Dec, 2011 05:12 PM

    aybars.badur's Avatar

    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,

Reply to this discussion

Internal reply

Formatting help or Preview

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.