Total Beginner - Extracting Data from a Database Online (Screenshot)
logan.c.graham at gmail.com
logan.c.graham at gmail.com
Mon May 27 20:58:00 EDT 2013
On Saturday, May 25, 2013 6:33:25 PM UTC-7, John Ladasky wrote:
> On Friday, May 24, 2013 4:36:35 PM UTC-7, Carlos Nepomuceno wrote:
>
> > #to create the tables list
>
> > tables=[[re.findall('<TD>(.*?)</TD>',r,re.S) for r in re.findall('<TR>(.*?)</TR>',t,re.S)] for t in re.findall('<TABLE>(.*?)</TABLE>',page,re.S)]
>
> >
>
> >
>
> > Pretty simple.
>
>
>
> Two nested list comprehensions, with regex pattern matching?
>
>
>
> Logan did say he was a "total beginner." :^)
Oh goodness, yes, I have no clue.
More information about the Python-list
mailing list