O'Reilly Network: Web Client Programming in Python | Linux Today

O’Reilly Network: Web Client Programming in Python

Written By
Web Webster
Web Webster
Jun 25, 2000

“Web client programming is a powerful technique for querying the
Web. A web client is any program that retrieves data from a web
server using the Hyper Text Transfer Protocol (the http in your
URLs). A web browser is a client; so are web crawlers, programs
that traverse the Web automatically to gather information. You can
also use web clients to take advantage of services offered by
others on the Web and add dynamic features to your own web
site.”

Web client programming belongs in any developer’s toolbox.
Perl aficionados have employed it for years. In Python, the process
reaches even higher levels of convenience and flexibility.

Three modules provide most of the functionality you will need:
HTTPLIB, URLLIB, and a newer addition, XMLRPCLIB. In true
Pythonesque fashion, each module builds upon its predecessor,
providing a solid, well-designed base for your applications. We
will cover the first two modules in this article, saving XMLRPCLIB
for a later time.”

“For our examples, we will use Meerkat. If you are like me, you
invest time tracking trends and developments in the open source
community to give you a competitive edge. Meerkat is a tool that
makes that task much easier. It is an open wire service that
collects and collates an enormous amount of information on open
source computing. Although its browser interface is flexible and
customizable, using web client programming we can scan, extract,
and even store this information off-line for later use. We will
first access Meerkat using HTTPLIB interactively, and then move on
to accessing Meerkat’s Open API via URLLIB to create a customizable
information-collecting tool.”

Complete
Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.