Hi,
I would like to understand exactly if and where urlgrabber might write to
temporary files.
In a recent post here I was told that urlopen() saves the link to a file before
returning it
http://article.gmane.org/gmane.linux.rpm.yum.devel/6661
Reading grabber.py I can only find something like
On 10/03/2012 09:24 PM, andrea wrote:
> On 10/02/2012 09:58 AM, Zdenek Pavlas wrote:
> Hi,
>
> I think I did not explain myself very well.
> I am trying to achieve a single nice progress bar across multiple files.
> I know there are N files, more or less the same length but
As I've noticed in an other post (there, the original matter was different),
sometimes, progress.end() is not called.
urlread() will call progress.end() (same for urlgrab)
urlopen() will not.
This is an example
You can see that the end of the progress in not the same in both cases.
import urlgr
On 10/02/2012 09:58 AM, Zdenek Pavlas wrote:
>> f = grabber.urlopen()
>
> urlopen() looks like a win for small files, but the actual
> implementation downloads to a tempfile and reopens it.
> Avoid it if you can, and use urlgrab() instead.
>
did you mean urlread()?
urlgrab() creates the fil
eives, but
then I saw there is a MultiFileMeter which I cant seem to able to use.
Is this already solved?
Andrea
___
Yum-devel mailing list
Yum-devel@lists.baseurl.org
http://lists.baseurl.org/mailman/listinfo/yum-devel
On 09/26/2012 02:27 AM, Toshio Kuratomi wrote:
> This is only partially true wrt python's stdlib. urllib2 passes urls
> through without escaping anything. It is up to the caller of the urllib2
> functions to escape the url. urllib2.quote() is provided for this purpose.
> Using it on the path el
On 09/25/2012 02:34 AM, Toshio Kuratomi wrote:
> http://www.ietf.org/rfc/rfc2396.txt
>
> See Sections 2.1, 2.4.2
>
>
> """
> In some cases, data that could be represented by an unreserved
> character may appear escaped; for example, some of the unreserved
> "mark" characters are automatically es
On 09/24/2012 08:21 AM, Zdenek Pavlas wrote:
>> Any idea how to make it work.
>
> Add the quote=0 option.
>
> urlgrabber.urlgrab('http://localhost:2000/A,B,C')
> => GET /A%2CB%2CC HTTP/1.1
>
> urlgrabber.urlgrab('http://localhost:2000/A,B,C', quote=0)
> => GET /A,B,C HTTP/1.1
>
Thank you.
Yes,
2C800%2C1200%2C1500%2C.mp4.csmil/master.m3u8
which fails.
I got that from wireshark.
If I try to use wget or curl, they pass the url unescaped which then works fine.
Any idea how to make it work.
Andrea
___
Yum-devel mailing list
Yum-devel@lists.baseur