GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Python Wiki
  • PSF Wiki
  • Jython Wiki
  • Python Wiki
  • Archive

This view

  • Original page
  • New address

GeezerVison is showing wiki.python.org — Web Client Programming

View as Markdown

Web Client Programming¶

Legacy Wiki Page

This page was migrated from the old MoinMoin-based wiki. Information may be outdated or no longer applicable. For current documentation, see python.org.

Client-Side Web Programming¶

Libraries¶

  • µTidylib 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 (Python 2.x) or html.parser (Python 3.x) on HTML that might be invalid! That way lies pain. Either clean it up (using tidy), or use a different parser.

  • urllib, urllib2, and httplib in the standard library.

  • 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¶

  • Grab a document from the web - from the Python Cookbook

  • Python web-client programming general FAQs.

  • urllib – Open arbitrary resources by URL

  • urllib2 – extensible library for opening URLs

Previous
Web Browser Programming
Next
Web Components
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.