3 ms·
Oh even better. I'm kind of new to Python, so I hadn't seen that before!
by jamesbvaughan 10y ago
Oh even better. I'm kind of new to Python, so I hadn't seen that before!
- dmn001 10y agoRight, if you're just matching a substring in a list of strings then you don't need regex for that. Also, lxml is over 20x faster than BeautifulSoup, although it doesn't really matter with such a low frequency of requests, it's something to note if you had another project that required parsing e.g. 1,000's of html pages.