Re: retreaving pages with python

  • From: Rui Batista <ruiandrebatista@xxxxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Sat, 07 Feb 2009 17:10:46 +0000

Hi,

>From what I recall from the urllib2 module:

import urllib2

#read the page content and put in the contents variable:
contents = urllib2.urlopen("http://www.example.com/some-/page";).read()

HTH

Rui Batista
Sáb, 2009-02-07 às 09:51 -0700, Tyler Littlefield escreveu:
> Hello list,
> I'm not able to include pages from other sites like I need to with
> php, because they blocked remote includes.
> So, my theory is this:
> I can include a cgi program that will do what the php page is supposed
> to do.
> This said, how can I retrieve the page at a certain url with python?
> Thanks in advance,
> Tyler Littlefield
>  

Rui Batista
E-mail: ruiandrebatista (at) gmail (dot) com
MSN/WLM: ruiandrebatista@xxxxxxxxxxx
Skype: ruiandrebatista   

Other related posts: