O'Reilly logo
  • Matt Marks thinks this is interesting:

links = re.findall('<loc>(.*?)</loc>', sitemap)

From

Cover of Web Scraping with Python

Note

requires - import re