making urllib request in Python from the client side

Posted by mridang on Stack Overflow See other posts from Stack Overflow or by mridang
Published on 2010-05-04T06:33:34Z Indexed on 2010/05/04 6:38 UTC
Read the original article Hit count: 452

Filed under:
|
|

Hi Guys,

I've written a Python application that makes web requests using the urllib2 library after which it scrapes the data. I could deploy this as a web application which means all urllib2 requests go through my web-server. This leads to the danger of the server's IP being banned due to the high number of web requests for many users. The other option is to create an desktop application which I don't want to do. Is there any way I could deploy my application so that I can get my web-requests through the client side. One way was to use Jython to create an applet but I've read that Java applets can only make web-requests to the server it is deployed on and the only way to to circumvent this is to create a server side proxy which leads us back to the problem of the server's ip getting banned.

This might sounds sound like and impossible situation and I'll probably end up creating a desktop application but I thought I'd ask if anyone knew of an alternate solution.

Thanks.

© Stack Overflow or respective owner

Related posts about python

Related posts about urllib