Click here to Skip to main content
12,451,662 members (61,281 online)
Click here to Skip to main content
Articles » Web Development » Web Security » General » Alternatives

Web scraping with regular expressions

, 18 Jan 2013 CPOL
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.
Pro
Pro
| | Privacy | Terms of Use | Mobile
Web02 | 2.8.160826.1 | Last Updated 18 Jan 2013
Article Copyright 2013 by Richard Penman
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid