Using regular expressions to extract data

Now that we've covered the basics and had an overview of Regex, we will use Regex to scrape (extract) data in bulk in a similar manner to using XPath, CSS selectors, pyquery, bs4, and so on by choosing between the implementation of Regex, XPath, pyquery, and more. This depends on the requirements and feasibility of web access and the availability of the content.

It's not always a requirement that the content should be unstructured to apply Regex and extract data. Regex can be implemented for both structured and unstructured web content that's found in order to extract the desired data. In this section, we'll explore a few examples while using Regex and its various properties.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.149.28.145