🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.python
2 messages
2 total messages Started by "sjf" Thu, 31 Jul 2003 14:44
sciaganie kodu zrodlowego z www
#158
Author: "sjf"
Date: Thu, 31 Jul 2003 14:44
9 lines
110 bytes
Witam,

za pomoc� jakiej funkcji mo�na �ci�gn�� przez http �r�d�o strony www?

pozdr
sjf



Re: sciaganie kodu zrodlowego z www
#159
Author: "Krzysztof Kaczk
Date: Thu, 31 Jul 2003 15:33
11 lines
242 bytes
>>> import urllib
>>> params = urllib.urlencode({'spam': 1, 'eggs': 2, 'bacon': 0})
>>> f = urllib.urlopen("http://www.musi-cal.com/cgi-bin/query?%s" % params)
>>> print f.read()

http://www.python.org/doc/current/lib/module-urllib.html





Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads