Re: Web servers

2009-11-16 Thread Chris Rebert
On Mon, Nov 16, 2009 at 11:17 AM, Virgil Stokes v...@it.uu.se wrote:
 Any suggestions on using Python to connect to Web servers (e.g. to access
 financial time series data)?

In what format? Using what protocol?
(*Insert other basic questions that need answering in order to answer
your question here*)

Cheers,
Chris
--
http://blog.rebertia.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Web servers

2009-11-16 Thread Dave Angel



Virgil Stokes wrote:
div class=moz-text-flowed style=font-family: -moz-fixedAny 
suggestions on using Python to connect to Web servers (e.g. to access 
financial time series data)?


--V. Stokes



You can open a web page for reading with  urllib2 module.  You can parse 
html with beautiful soup, or if it's clean xhtml, with the xml module.


But parsing raw html is error prone, and subject to change as the web 
designer reorganizes things.  So many web servers also have a protocol 
intended for data (as opposed to intended for a browser).  This is 
specific to each service, however.  If you want to get started in your 
reading, you could google for web services, which is one approach 
using SOAP  WSDL.


Note also that most servers have restrictions on the data you access 
this way.  They may or may not be enforceable, but if you access a lot 
of data from a server, you may be too big a drain on its resources, if 
it's configured for browser access only.


DaveA

--
http://mail.python.org/mailman/listinfo/python-list