May 2019
Beginner to intermediate
466 pages
10h 44m
English
Earlier, we read the response body into a String and stored it into the resp_body variable. It's a long HTML string and, in theory, we could use Regex and other string-processing functions to find and extract the data that we need. However, such an approach would be extremely complicated and error-prone. The best way to search for content in a HTML document is via HTML and CSS selectors. The only problem is that these selectors don't operate on strings—they only work against a Document Object Model (DOM).
Read now
Unlock full access