Re: Parsing Baseball Stats

2006-07-26 Thread Schronos
Hi. The webpage you need to parse is not very wellformed (I think), but no problem. perhaps the best option is to locate the portion of HTML yo want, in this case from "Actual Pitching Statistics " to "". Between this you have a few entries like this one: " 19 http://www.baseballprospectus.com/d

Re: Parsing Baseball Stats

2006-07-26 Thread Paul McGuire
"Ankit" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Frederic, > > Thanks for posting the solution. I used the original solution you > posted and it worked beautifully. > > Paul, > > I understand your concern for the site's TOS. Although, this may not > mean anything, the reason I

Re: Parsing Baseball Stats

2006-07-26 Thread Ankit
posting them. Ankit Anthra Norell wrote: > - Original Message - > From: "Paul McGuire" <[EMAIL PROTECTED]> > Newsgroups: comp.lang.python > To: > Sent: Wednesday, July 26, 2006 1:01 AM > Subject: Re: Parsing Baseball Stats > > > > "Anthra

Re: Parsing Baseball Stats

2006-07-26 Thread Anthra Norell
- Original Message - From: "Paul McGuire" <[EMAIL PROTECTED]> Newsgroups: comp.lang.python To: Sent: Wednesday, July 26, 2006 1:01 AM Subject: Re: Parsing Baseball Stats > "Anthra Norell" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTEC

Re: Parsing Baseball Stats

2006-07-25 Thread Paul McGuire
"Anthra Norell" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Paul, > > I think self-respect is a very essential attitude and I am pleased to know that you value it as much as I do. > The off topic thus dispatched, let me first express my appreciation or your interest. Next

Re: Parsing Baseball Stats

2006-07-25 Thread Anthra Norell
- Original Message - From: "Paul McGuire" <[EMAIL PROTECTED]> Newsgroups: comp.lang.python To: Sent: Tuesday, July 25, 2006 7:48 PM Subject: Re: Parsing Baseball Stats > "Anthra Norell" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTE

Re: Parsing Baseball Stats

2006-07-25 Thread Paul McGuire
"Anthra Norell" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > Below your solution ready to run. Put get_statistics () in a loop that feeds it the names from your file, makes an ouput file > name from it and passes both 'statistics' and the ouput file name to file_stati

Re: Parsing Baseball Stats

2006-07-25 Thread Anthra Norell
m: <[EMAIL PROTECTED]> Newsgroups: comp.lang.python To: Sent: Monday, July 24, 2006 5:48 PM Subject: Parsing Baseball Stats > I would like to parse a couple of tables within an individual player's > SHTML page. For example, I would like to get the "Actual Pitching > Stati

Re: Parsing Baseball Stats

2006-07-24 Thread Paul McGuire
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I would like to parse a couple of tables within an individual player's > SHTML page. For example, I would like to get the "Actual Pitching > Statistics" and the "Translated Pitching Statistics" portions of Babe > Ruth page (http://www.ba

Parsing Baseball Stats

2006-07-24 Thread ankitdesai
I would like to parse a couple of tables within an individual player's SHTML page. For example, I would like to get the "Actual Pitching Statistics" and the "Translated Pitching Statistics" portions of Babe Ruth page (http://www.baseballprospectus.com/dt/ruthba01.shtml) and store that info in a CSV