python way to automate IE8's File Download dialog

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Fri Jun 5 22:39:02 EDT 2009


En Fri, 05 Jun 2009 09:46:25 -0300, <""Michel Claveau -  
MVP"<enleverLesX_XXmcX"""@xmclavxeaux.com>> escribió:

> Suppose that the (web) site give the file only after several seconds,  
> and after the user click  a confirm (example: RapidFile).
> Suppose that the (web) site give the file only after the user input a  
> code, controled by a javascript script.

The (web) site only receives HTTP requests; javascript runs only on the  
client side. If you generate an equivalent HTTP request in code, you're  
done.

By example, the wait timer and captcha of rapidshare can be easily  
skipped; but the "no more than one download per IP" limitation cannot,  
because it is enforced on the server side.

Of course, figuring out how to do that in each particular case has a cost  
(time and required skills), and it may be more convenient to do browser  
automation as you imply.

-- 
Gabriel Genellina




More information about the Python-list mailing list