[Twisted-Python] Farming off work to other web services

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Wed Nov 18 12:46:32 MST 2009


On 07:38 pm, ted.pederson at gmail.com wrote:
>How can my server utilize other web services? Is there part of the 
>framework
>to do this, or should I just write a mini-client?
>
>Basically, I want to use a very simple web service, a url with a couple 
>of
>params, and I get back xml or json data.
>
>Sorry for fundamental nature of this question. Perhaps I should be
>redirected to a book or docs, but the docs are pretty large and I am 
>just
>getting my feet wet.

http://twistedmatrix.com/documents/current/api/twisted.web.client.getPage.html 
is probably what you're looking for.

http://twistedmatrix.com/projects/web/documentation/examples/getpage.py 
demonstrates its usage.

Jean-Paul




More information about the Twisted-Python mailing list