[python-win32] RE working in interactive but not in regular code
James Matthews
nytrokiss at gmail.com
Sun Nov 19 00:52:05 CET 2006
Sorry i was in a bit or a rush....
def next_page_finder(site):
site = urlopen(site).read()
next_site_pages = findall(r'\?Brand=\d+\&pg=\d+',site)
return next_site_pages
On 11/17/06, Bob Gailer <bgailer at alum.rpi.edu> wrote:
>
> James Matthews wrote:
> > I have this RE things= re.findall(r'\?Brand\=\w+\&pg=\w+',site) now
> > when i run it against a site it returns everything in a list ( in the
> > interactive interpreter however when i run it start alone it won't
> > work?? Why?
> You will probably get more help if you tell us what behavior you expect
> and what you get. "won't work" does not help us understand.
>
> --
> Bob Gailer
> 510-978-4454
>
>
--
http://www.goldwatches.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20061118/825c6579/attachment.htm
More information about the Python-win32
mailing list