-
Book Overview & Buying
-
Table Of Contents
Python Automation Cookbook - Third Edition
By :
While downloading raw text or a binary file is always available, the main language of the web is HTML.
HTML is a structured language, defining different parts of a document such as headings and paragraphs. HTML is also hierarchical, defining sub-elements. The ability to parse raw text into a structured document basically gives us the ability to extract information automatically from a web page. For example, some text might be relevant to us if it's enclosed by certain HTML element tags, such as a class div or after a heading h3 tag.
This recipe will help you when you need to systematize accessing web pages, but if it's something that you need to do once, is very likely that GenAI can help you! GenAI tools capable of accessing the Internet are great at scraping elements of web pages, and searching and extracting information. But they won't be consistent, which is something that this recipe will allow you to be. For example, checking over and over to understand...