Click here to Skip to main content
11,706,455 members (50,507 online)
Click here to Skip to main content
Articles » Web Development » Web Security » General » Alternatives

Web scraping with regular expressions

, 18 Jan 2013 CPOL 3.6K 2
Using regular expressions for web scraping is sometimes criticized, but I believe they still have their place, particularly for one-off scrapes. Let's say I want to extract the title of a particular webpage - here is an implementation using BeautifulSoup, lxml, and regular expressions:import reimpor
We're sorry, but the article you are trying to view was deleted at 15 Jun 2015.

Please go to the Web Security Table of Contents to view the list of available articles in this section.
| | Privacy | Terms of Use | Mobile
Web03 | 2.8.150819.1 | Last Updated 18 Jan 2013
Article Copyright 2013 by Richard Penman
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid