use regex to search the page one time to get two types of Information

Chris Angelico rosuav at gmail.com
Fri Aug 19 09:19:04 EDT 2016


On Fri, Aug 19, 2016 at 11:13 PM, iMath <redstone-cold at 163.com> wrote:
> 1. searching the page two times rather than one is a little bit time consuming .

Have you measured that? If not, ignore it. You're searching a web
page; if you're downloading that before you search it, chances are
very good that you spend far more time waiting for the download than
you ever will on the regex.

ChrisA



More information about the Python-list mailing list