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

iMath redstone-cold at 163.com
Sat Aug 20 05:37:24 EDT 2016


On Friday, August 19, 2016 at 9:19:22 PM UTC+8, Chris Angelico wrote:
> 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

tested,  searching the page two times rather than one is a little bit time consuming . 



More information about the Python-list mailing list