Python Penetration Testing Cookbook
上QQ阅读APP看书,第一时间看更新

Using a regular expression to get the information from the downloaded web pages

The regular expression (re) module helps to find specific patterns of text from the downloaded web page. Regular expressions can be used to parse data from the web pages.

For instance, we can try to download all images in a web page with the help of the regular expression module.