It could be the server is blocking your header to prevent web scrapping , try to change the default user-agent from the urlib header use Request.add_header
On 18 January 2014 06:29, Diogene Laerce <[email protected]> wrote: > Hi, > > I try to download ansible on this url : > > url = http://ansibleworks.com/releases/ansible-1.4.tar.gz > > with this python code : > > url_obj = urllib2.urlopen(url) > > and I systematically get this as return code : > > HTTP Error 403: Forbidden > > Does anyone understand why ? > > Thank you > > -- > “One original thought is worth a thousand mindless quotings.” > “Le vrai n'est pas plus sûr que le probable.” > > Diogene Laerce > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
