Parse text from HTML website, dump into DB

From: IceOnFire (af_at_iceonfire.net)
Date: 03/16/04


Date: Mon, 15 Mar 2004 20:10:05 -0800

I am working on a script to extract statistics (which is updated daily) from
a website, and insert them into a MySQL database. I want to take this
website:
http://www.usatoday.com/sports/basketball/nba/stats/allplayers0304.htm
and strip off all the HTML tags and etc, make it look like
http://www.enlhoops.com/ratings/parsed.txt
and then insert each players stat line into the database.

I have begun writing the script, getting the file, striping html tags off,
but that doesn't seem to work too well. If anyone can help me get started,
suggest a function or anything else, that would be helpful. Thanks.

IceOnFire



Relevant Pages

  • Parse text from HTML website, dump into DB
    ... I am working on a script to extract statistics from ... a website, and insert them into a MySQL database. ... I have begun writing the script, getting the file, striping html tags off, ...
    (comp.lang.php)
  • Re: Parse text from HTML website, dump into DB
    ... > a website, and insert them into a MySQL database. ... > I have begun writing the script, getting the file, striping html tags off, ... DeeDee, don't press that button! ...
    (alt.php)
  • Re: Parse text from HTML website, dump into DB
    ... > a website, and insert them into a MySQL database. ... > I have begun writing the script, getting the file, striping html tags off, ... DeeDee, don't press that button! ...
    (comp.lang.php)
  • Re: Parse text from HTML website, dump into DB
    ... > a website, and insert them into a MySQL database. ... > and strip off all the HTML tags and etc, ... > I have begun writing the script, getting the file, striping html tags off, ...
    (alt.php)
  • Re: Parse text from HTML website, dump into DB
    ... > a website, and insert them into a MySQL database. ... > and strip off all the HTML tags and etc, ... > I have begun writing the script, getting the file, striping html tags off, ...
    (comp.lang.php)