CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Fri, 18 Jul 2025 13:18:44 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20100120085712
location: https://web.archive.org/web/20100120085712/https://wiki.python.org/moin/WebClientProgramming
server-timing: captures_list;dur=0.699241, exclusion.robots;dur=0.023786, exclusion.robots.policy;dur=0.010639, esindex;dur=0.014635, cdx.remote;dur=194.003848, LoadShardBlock;dur=746.471545, PetaboxLoader3.resolve;dur=526.659617, PetaboxLoader3.datanode;dur=173.304982
x-app-server: wwwb-app211
x-ts: 302
x-tr: 992
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: SERVER=wwwb-app211; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Fri, 18 Jul 2025 13:18:46 GMT
content-type: text/html; charset=utf-8
x-archive-orig-date: Wed, 20 Jan 2010 08:57:12 GMT
x-archive-orig-server: Apache/2.2.9 (Debian) mod_fastcgi/2.4.6 mod_python/3.3.1 Python/2.5.2 mod_wsgi/2.5
x-archive-orig-vary: Cookie,User-Agent,Accept-Language
x-archive-orig-content-length: 10379
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Wed, 20 Jan 2010 08:57:12 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sun, 22 May 2005 01:32:44 GMT", ; rel="prev memento"; datetime="Wed, 16 Dec 2009 09:05:33 GMT", ; rel="memento"; datetime="Wed, 20 Jan 2010 08:57:12 GMT", ; rel="next memento"; datetime="Wed, 10 Mar 2010 18:42:05 GMT", ; rel="last memento"; datetime="Sun, 29 Jan 2023 22:25:38 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 51_13_20100120084733_crawl103_IndexOnly-c/51_13_20100120085515_crawl103.arc.gz
server-timing: captures_list;dur=0.656445, exclusion.robots;dur=0.022307, exclusion.robots.policy;dur=0.009844, esindex;dur=0.013771, cdx.remote;dur=38.690897, LoadShardBlock;dur=955.896500, PetaboxLoader3.resolve;dur=725.074794, PetaboxLoader3.datanode;dur=465.811364, load_resource;dur=366.667449
x-app-server: wwwb-app211
x-ts: 200
x-tr: 1471
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
WebClientProgramming - PythonInfo Wiki
Client-Side Web Programming
Libraries
utidylib and mxTidy -- Python interfaces to html tidy library to clean up HTML documents.
html5lib A HTML5-compliant library for parsing arbitarily-broken HTML to a range of tree formats including minidom, elementtree (including lxml) and BeautifulSoup
BeautifulSoup -- a permissive HTML parser.
Don't use HTMLParser on HTML that might be invalid! That way lies pain. Either clean it up (using tidy), or use a different parser.
ClientCookie, ClientForm, and Mechanize are higher-level libraries for writing a web client.
mechanoid a mechanize fork.
libxml2dom can parse HTML by employing libxml2's liberal HTML parser.
Resources
EditText (last edited 2009-05-13 15:49:51 by 189)