*! version 1.2.1 07mar2013

Title

readhtmllist -- Read a web page and convert any lists it contains to a data set

Syntax

readhtmllist

[, options]

Main
html Keep HTML markup

debug Save intermediate results

Description

readhtmllist reads the requested web page and converts any lists it contains into a Stata data set.

Options

Main

html keeps HTML markup (defined as anything in between < and >). By default HTML markup is removed.

debug keeps the intermediate results generated by the program which are dropped by default. Probably only useful for debugging.

Remarks

If the web page contains multiple lists they will still be placed in a single data set and it is up to the user to separate them (this may change in future versions).

Note that the new data set will replace any existing data set, and this program does not (yet) check to see if anything should be saved first!

This program is in still early in the development process. Use at your own risk, but it's normally pretty easy to tell if a page has been read properly.

Examples

Read in a list of all issues of SSCC News

. readhtmllist https://www.ssc.wisc.edu/sscc/ssccnews/home.htm