Re: Web servers





Virgil Stokes wrote:
<div class="moz-text-flowed" style="font-family: -moz-fixed">Any 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

.



Relevant Pages

  • Re: Web Services Network Infrastructure
    ... Web Services Guy wrote: ... do you put the web servers behind the primary firewall and the database servers behind another one with port 1433 open to the web servers? ... Other system configurations are also possible, thanks to the versatility of web services (which use the port 80 and a text based protocol to communicate). ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Pocket pc development
    ... web servers, what is ASP.net then? ... Web services are really easy to write in C# ... >> So I have a final question concerning web services, you told me its an app ... >>> Philip, ...
    (microsoft.public.pocketpc.developer)
  • Re: Pocket pc development
    ... ASP.Net is used to draw web screens for a web browser from any .Net ... Web services also use IIS as the engine, but no web browser on the ... > web servers, what is ASP.net then? ... >> ..Net Compact Framework MVP ...
    (microsoft.public.pocketpc.developer)
  • Re: Pocket pc development
    ... ASP.NET and Web Services are not the ... > web servers, what is ASP.net then? ... >>> I know that a web service dicussion is far beyond this newsgroup ... >>> Thx for ur patience. ...
    (microsoft.public.pocketpc.developer)