[Tutor] Tutor Digest, Vol 18, Issue 41
David Holland
davholla2002 at yahoo.co.uk
Mon Aug 8 12:21:59 CEST 2005
Looking at the slashdot url works fine, I think the problem is because I am trying to download a page with an address of the form url.php?node=5924&pagetree=&fromid=&objectid=25586
And I only download url not url.phpetc.
Is there anyway that that can be done ?
David
Message: 8
Date: Mon, 8 Aug 2005 05:11:57 -0400
From: python-tutor at toddmaynard.com
Subject: Re: [Tutor] Get information from a web page
To: tutor at python.org
Message-ID: <200508080511.57809.python-tutor at toddmaynard.com>
Content-Type: text/plain; charset="iso-8859-6"
Not sure exactly what you have going wrong without the code or the exact url
you are using.
Does something like:
import urllib
page =
urllib.urlopen("http://slashdot.org/article.pl?sid=05/08/08/043236&tid=126").read()
print page
give you the correct results?
Is the problem specific to only to that url?*************************************
---------------------------------
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20050808/c82e6b2b/attachment.htm
More information about the Tutor
mailing list