Latest / CyberCode Academy / Course 40 - Web Scraping with Python | Episode 11: Advanced Filtering and Efficient Extraction with BeautifulSoup
Transcript
- 0:00Speaker 1: Imagine the Internet for a second, not as like a
- 0:03Speaker 1: polished series of visual web pages, but as this massive,
- 0:09Speaker 1: sprawling and honestly highly disorganized filing cabinet. Right.
- 0:12Speaker 2: Yeah, it's incredibly messy under the hood, exactly.
- 0:15Speaker 1: And you know, if you want to pull a specific
- 0:17Speaker 1: data point out of it, say like just a single
- 0:20Speaker 1: image or one specific link, you really don't want to
- 0:22Speaker 1: read the whole cabinet. You just want that one file.
- 0:24Speaker 2: Right, you do, because if you pull everything, you're just
- 0:27Speaker 2: wasting time and resources.
- 0:28Speaker 1: Yeah, but when you programmatically request a page, you don't
- 0:31Speaker 1: get this neatly labeled Jason data or something. You are
- 0:36Speaker 1: basically handed thousands of lines of unstructured, completely unpredictable HTML.
- 0:41Speaker 2: Which is I mean, that's the fundamental problem of webscraping
- 0:44Speaker 2: right there. We experience the Internet as rendered text in
- 0:47Speaker 2: pretty graphics, but underneath, it's just this chaotic markup language.
- 0:51Speaker 1: Right.
- 0:51Speaker 2: Building a reliable bridge between that unstructured markup and like
- 0:55Speaker 2: a structure usable data set is really a core challenge,
- 0:59Speaker 2: especially in fields like beta science, cybersecurity, artificial intelligence, oh
- 1:02Speaker 2: for sure, because you simply cannot train a machine learning
- 1:05Speaker 2: model or audit a network if you can't cleanly and
- 1:10Speaker 2: efficiently extract the underlying data. It's foundational.
- 1:13Speaker 1: So today's deep dive is really about mastering that extraction process.
- 1:17Speaker 1: We're talking about mastering web scraping and HTML parsing using
- 1:22Speaker 1: Python's beautiful Soup library.
- 1:24Speaker 2: Yeah, taking you from just making blunt force full page
- 1:27Speaker 2: grabs to well writing surgical, memory efficient custom filters.
- 1:31Speaker 1: Okay, let's unpack this because I like to think of
- 1:33Speaker 1: beautiful Soup as sort of a highly efficient personal assistant
- 1:39Speaker 1: who actually speaks the native language of the web.
- 1:42Speaker 2: That's a great way to put it. Actually, Beautiful Soup
- 1:44Speaker 2: is essentially an interpreter. It takes that chaotic web and
- 1:46Speaker 2: converts it into a navigable Python object, a DOM t.
- 1:50Speaker 1: The document object model. But before it can do that,
- 1:53Speaker 1: it needs a parser, right like, it doesn't do the
- 1:55Speaker 1: heavy lifting.
- 1:56Speaker 2: Itself, exactly. Beautiful Soup sits on top of a parser
- 1:59Speaker 2: when when you initialize it, you have to choose an engine,
- 2:02Speaker 2: and a lot of beginners just use pythons built in
- 2:04Speaker 2: HTML dot parser, which is.
- 2:05Speaker 1: Which is fine for basics.
- 2:07Speaker 2: I guess it's fine, Yeah, but it's relatively slow. For
- 2:10Speaker 2: serious date extraction. You almost always want to pass in
- 2:13Speaker 2: LexML as your secondary argument.
- 2:15Speaker 1: Okay, wait, why LexML specifically, Well, a couple of reasons.
- 2:19Speaker 2: First, it's written in C, so it's incredibly fast. But
- 2:22Speaker 2: more importantly, it is deeply forgiving.
- 2:26Speaker 1: Forgiving how like with bad code.
- 2:28Speaker 2: Yeah, exactly. HTML on the live web is notoriously malformed.
- 2:33Speaker 2: Developers forget to close tags or you know, they nest
- 2:36Speaker 2: block elements inside inline elements. It happens all the.
- 2:39Speaker 1: Time, right, I've dedinitely done that myself a few times.
- 2:41Speaker 2: We all have. But if you pass that garbage HTML
- 2:44Speaker 2: into a strict parser, the program just throws a fatal
- 2:47Speaker 2: error and crashes. But when LexML encounters a broken tree,
- 2:51Speaker 2: it uses heuristic logic to infer what the developer actually meant.
- 2:55Speaker 1: Oh wow, so basically fixes it for you on the fly.
- 2:57Speaker 2: It does. It patches the tree dynamically in memory, so
- 3:00Speaker 2: beautiful soup always has a valid, fully nested data structure
- 3:03Speaker 2: to navigate.
- 3:04Speaker 1: That is super useful. Okay, So once LexML has built
- 3:07Speaker 1: this tree, we have all these Python objects to play with.
- 3:10Speaker 1: Getting comfortable with the foundational commands is step one, right,
- 3:12Speaker 1: like find.
- 3:14Speaker 2: And findal exactly. Once the page is loaded, you can
- 3:17Speaker 2: navigate its structure. If you just want a paragraph, you
- 3:20Speaker 2: literally just ask for the P tag.
- 3:22Speaker 1: So if I use find what does that actually return?
- 3:25Speaker 2: The fine function brings back the very first instance of
- 3:28Speaker 2: an element it sees on a page.
- 3:30Speaker 1: Okay, So if I'm scraping, say a fan page about
- 3:34Speaker 1: the cartoon Time and Jerry, and I use fine for
- 3:37Speaker 1: an image tag, it just gives me the first picture on.
- 3:40Speaker 2: The page, right, Maybe it's the banner image, maybe it's
- 3:42Speaker 2: a logo. It stops searching the millisecond it hits a match.
- 3:46Speaker 1: But what if I need more than that? Like what
- 3:48Speaker 1: if I want the whole gallery?
- 3:49Speaker 2: That is where you use findal that gathers every single
- 3:52Speaker 2: instance of a specified element, like every single image tag
- 3:55Speaker 2: on the entire page, and returns them to you neatly
- 3:58Speaker 2: packaged in a Python list.
- 4:00Speaker 1: Gotcha. And if it doesn't find anything, like if I
- 4:02Speaker 1: search for a span tag and there aren't.
- 4:04Speaker 2: Any, it just returns an empty list, no crashing, just
- 4:07Speaker 2: nothing here.
- 4:08Speaker 1: Wait. Findal is basically just a bulk grab then, But
- 4:11Speaker 1: what if I want something highly specific? Like what if
- 4:14Speaker 1: I don't want every image on the Tom and Jerry page,
- 4:16Speaker 1: but specifically I just want the image of Jerry. A
- 4:18Speaker 1: bulk grab doesn't really help me there, because I'll have
- 4:21Speaker 1: to sort through fifty images of Tom and Spike just
- 4:25Speaker 1: to find the one I want.
- 4:26Speaker 2: That exact frustration is why we have to move beyond
- 4:29Speaker 2: just searching by basic HTML tags. You have to start
- 4:32Speaker 2: searching by specific attributes.
- 4:34Speaker 1: Okay, so filtering like upgrading the search. How do we
- 4:38Speaker 1: do that? Well?
- 4:39Speaker 2: HTML tags have attributes, right, like the source of an
- 4:42Speaker 2: image or the class of a link. You can tell
- 4:45Speaker 2: beautiful soup to find all elements where the source is
- 4:48Speaker 2: exactly you know, Jerry dot jpeg.
- 4:50Speaker 1: Huh. Okay, so I'm passing in a dictionary of attributes
- 4:53Speaker 1: to filter.
- 4:53Speaker 2: It down exactly. But there's a roadblock there. In the
- 4:57Speaker 2: real world, modern web development uses heavily dynamic class names now.
- 5:01Speaker 1: Oh like with frameworks like tailwind, where it's it's a
- 5:04Speaker 1: bunch of utility classes.
- 5:05Speaker 2: Yes, you might see class names like cargrid one, cardgrid two,
- 5:08Speaker 2: card good three. An exact string match is totally useless
- 5:11Speaker 2: there because the numbers keep changing.
- 5:12Speaker 1: Okay, Here's where it gets really interesting though. This is
- 5:15Speaker 1: where we bring in regular expressions.
- 5:17Speaker 2: Right rajex precisely rejects is the perfect tool for this.
- 5:21Speaker 1: I love this concept because if standard filtering is like
- 5:26Speaker 1: asking your assistant to find a suspect by giving them
- 5:29Speaker 1: an exact photographic find this specific guy, then rejects is
- 5:33Speaker 1: like giving them a behavioral profile.
- 5:34Speaker 2: That's a really good analogy.
- 5:36Speaker 1: Actually, yeah, it's like saying, find anyone wearing a red hat.
- 5:39Speaker 1: You don't know exactly who it is, but you know the.
- 5:42Speaker 2: Pattern, right. You aren't tied to exact spelling at all.
- 5:46Speaker 2: You are defining a logical pattern. So in Beautiful Soup,
- 5:49Speaker 2: instead of passing a standard string to filter a class,
- 5:52Speaker 2: you pass a compiled rejex object.
- 5:55Speaker 1: So how would that work for the tailwind example, the
- 5:58Speaker 1: card grids.
- 5:59Speaker 2: You just write as pattern that looks for any class
- 6:02Speaker 2: that merely starts with the word card. As Beautiful Soup
- 6:04Speaker 2: traverses the document, it checks every tag against that pattern.
- 6:08Speaker 1: Well, that's brilliant. So you could also find like any
- 6:11Speaker 1: link where the class attribute starts with the letter C,
- 6:13Speaker 1: which would capture both creator and character links simultaneously exactly.
- 6:18Speaker 2: Or say, filtering a page for any element where the
- 6:21Speaker 2: ID attribute contains the digit to or the word link
- 6:25Speaker 2: rejects allows for that flexible fuzzy searching when developers don't
- 6:29Speaker 2: use perfectly uniform naming conventions, which is, frankly most of the.
- 6:34Speaker 1: Time, the web is so messy. But wait, let me
- 6:36Speaker 1: challenge the performance of that. A bit rejects is fast.
- 6:39Speaker 1: But if I'm scraping a heavy page with I don't
- 6:42Speaker 1: know tens of thousands of nodes, Yeah, and beautiful soup
- 6:46Speaker 1: is executing a reject pattern match against every single attributed encounters.
- 6:51Speaker 1: Doesn't that create a massive bottleneck? Like, won't that slow
- 6:54Speaker 1: my script to a crawl?
- 6:55Speaker 2: It absolutely can, Yeah, especially if you write poor regular expression.
- 6:59Speaker 1: What makes a poor rejects in this context if.
- 7:01Speaker 2: You use really complex lookarounds or heavily nested wildcard matchers,
- 7:05Speaker 2: and you can trigger what's called catastrophic backtracking and the
- 7:08Speaker 2: rejects engine, it will literally freeze your scraper entirely.
- 7:11Speaker 1: Yikes. So keep it simple exactly.
- 7:13Speaker 2: The rule of thumb for programmatic extraction is to keep
- 7:16Speaker 2: your patterns as linear as possible. Use them for simple
- 7:18Speaker 2: substring matching, not for parsing incredibly complex logic.
- 7:22Speaker 1: Which brings up another limit of rejects. Actually, what happens
- 7:25Speaker 1: when the pattern you're looking for is based on structural
- 7:28Speaker 1: logic rather than just spelling. What do you mean like
- 7:31Speaker 1: rejects operates purely on strings, right, it doesn't understand the
- 7:35Speaker 1: hierarchy of the page. What if I want an element
- 7:37Speaker 1: that has one attribute but specifically lacks another. Rejects can't
- 7:41Speaker 1: really do that structural relationship easily.
- 7:43Speaker 2: No, it can't, And that exact scenario is where you
- 7:47Speaker 2: graduate from basic filtering to writing custom custom logic. Beautiful
- 7:52Speaker 2: Soup actually allows you to pass your own custom Python
- 7:55Speaker 2: functions directly into findal Wait, I.
- 7:58Speaker 1: Can just pass a whole Python function into the search
- 8:01Speaker 1: How does that work under the hood?
- 8:02Speaker 2: So when you pass a custom function, beautiful Soup alters
- 8:05Speaker 2: its loop for every single element it encounters. It passes
- 8:08Speaker 2: that individual tag into your function as an argument.
- 8:11Speaker 1: Okay, so my function gets the tag.
- 8:14Speaker 2: Then what Then your function executes whatever Python logic you want.
- 8:17Speaker 2: You can check its parents, verify its siblings, check for
- 8:19Speaker 2: missing attributes, whatever you need, and then it just returns a.
- 8:22Speaker 1: Boolean ah true or false. So if my function returns true,
- 8:27Speaker 1: beautiful Soup keeps the tag. If false, it throws it
- 8:30Speaker 1: out and moves to the next one.
- 8:31Speaker 2: Exactly, you are combining presence checks with exclusion logic using
- 8:35Speaker 2: the full power of Python.
- 8:36Speaker 1: Let's apply this to a real world scenario. Say you
- 8:40Speaker 1: are scraping an article on Mashable about static website generators
- 8:44Speaker 1: fetch the HTML, parse it, and you want to extract
- 8:47Speaker 1: all the outbound links from the body of the article.
- 8:49Speaker 2: Very standard use case.
- 8:51Speaker 1: So you write a custom function. You isolate the anchor tags,
- 8:54Speaker 1: and you extract the presss patributes the URLs. But when
- 8:58Speaker 1: you try to feed those URLs into your next script
- 9:00Speaker 1: to visit them, it fails. Half the links are broken.
- 9:05Speaker 1: What went wrong there?
- 9:06Speaker 2: This is a classic architectural pitfall. You've just hit the
- 9:08Speaker 2: difference between absolute and relative.
- 9:10Speaker 1: URLs, right. Because an absolute link has the full HTTP
- 9:13Speaker 1: and domain name. You can paste it anywhere and it works.
- 9:16Speaker 2: Yes, But relative links just start with a forward slash
- 9:20Speaker 2: like a offer profile. They rely on the website's root
- 9:23Speaker 2: domain to function. When you click that in a browser,
- 9:26Speaker 2: the browser knows to attach mashable dot com to the
- 9:28Speaker 2: front of it.
- 9:28Speaker 1: But beautiful Soup isn't a browser exactly.
- 9:31Speaker 2: It's just a static text parser. It has no network state,
- 9:35Speaker 2: so you just extract the raw string author profile. If
- 9:39Speaker 2: you pass that to a new network request, Python has
- 9:41Speaker 2: absolutely no idea which server to talk to.
- 9:44Speaker 1: So what does this all mean? It means the Internet
- 9:46Speaker 1: is incredibly messy, and we aren't just extracting data. We
- 9:49Speaker 1: actively have to clean it and rebuild it on the
- 9:52Speaker 1: fly so it's actually usable.
- 9:53Speaker 2: Precisely, you have to dynamically reconstruct that data layer.
- 9:57Speaker 1: So how do we fix the broken relative links? Do
- 10:00Speaker 1: I just write a quick script to glue the base
- 10:03Speaker 1: URL onto the front of the relative link?
- 10:05Speaker 2: I mean you could, but you shouldn't. Simple string concatenation
- 10:08Speaker 2: introduces so many edge case bugs, really, like what, well,
- 10:12Speaker 2: sometimes the relative link starts with a slash, sometimes it doesn't.
- 10:15Speaker 2: Sometimes your base domain string ends with a slash. If
- 10:18Speaker 2: you just mash them together, you'll inevitably generate malformed URLs
- 10:21Speaker 2: with double slashes like dot com author.
- 10:23Speaker 1: Oh yeah, I've definitely seen that air before. It's a
- 10:26Speaker 1: huge pain, right.
- 10:27Speaker 2: So instead you should use pythons built in orlib dot
- 10:31Speaker 2: parse library, specifically a function called earl join. It's mathematically
- 10:35Speaker 2: designed to handle those standards. You just pass it the
- 10:37Speaker 2: base URL and the scrape string, and it calculates the
- 10:41Speaker 2: correct absolute URL every single time.
- 10:44Speaker 1: Okay, so the workflow is parse the dom, extract the link,
- 10:48Speaker 1: run it through earl join to fix it, and then
- 10:50Speaker 1: save it. But I have to push back on something
- 10:53Speaker 1: even more fundamental.
- 10:54Speaker 2: Here, Sure, go ahead.
- 10:55Speaker 1: What happens if the site where scraping is built with
- 10:57Speaker 1: a modern JavaScript framework like React or view. When Python
- 11:01Speaker 1: fetches the page, it just gets the initial HTML. If
- 11:04Speaker 1: all those links are rendered client side by javscript after
- 11:07Speaker 1: the page loads, beautiful soup is just going to see
- 11:09Speaker 1: a bunch of anti tags.
- 11:10Speaker 2: That is a critical, critical distinction. Beautiful Soup does not
- 11:14Speaker 2: possess a javscript engine. It cannot execute scripts. If you
- 11:17Speaker 2: point it at a single page application rendered entirely client side,
- 11:21Speaker 2: it is effectively blind.
- 11:22Speaker 1: So how do we bridge that gap? You still need
- 11:25Speaker 1: the data.
- 11:25Speaker 2: You have to separate the rendering layer from the parsing layer.
- 11:29Speaker 2: Instead of just making a basic HGTP request, you use
- 11:32Speaker 2: a headless browser automation tool like Playwright or Selenium.
- 11:36Speaker 1: Oh, so you actually spin up a real browser in
- 11:38Speaker 1: the background, exactly.
- 11:40Speaker 2: You command the headless browser to navigate to the page,
- 11:43Speaker 2: wait for all the React components to mount and allow
- 11:46Speaker 2: the JavaScript to fully construct the dom.
- 11:49Speaker 1: And once the dynamic data is actually visible on the page.
- 11:52Speaker 2: Then you command the headless browser to export that fully
- 11:55Speaker 2: rendered HTML string. You take that string, pass it into
- 11:58Speaker 2: beautiful Soup, and part like normal. You let the browser
- 12:01Speaker 2: do the heavy lifting of rendering, but you still use
- 12:04Speaker 2: beautiful Soup for the surgical extraction.
- 12:06Speaker 1: That makes total sense. Render first, extract second. But let's
- 12:10Speaker 1: talk about the computational costs of all this, because earlier
- 12:12Speaker 1: you mentioned performance.
- 12:14Speaker 2: It's a major factor.
- 12:15Speaker 1: Yes, rebuilding links using custom functions, scanning massive sites with
- 12:20Speaker 1: tens of thousands of domnodes, it takes a toll. If
- 12:23Speaker 1: I want to scale us up in scrapes, say ten
- 12:25Speaker 1: thousand pages. Concurrently, loading a five megabyte HTML file into
- 12:30Speaker 1: a beautiful Soup object might take up thirty megabytes of RAM.
- 12:33Speaker 1: Once all the Python objects are created.
- 12:35Speaker 2: Easily, it expands significantly in memory.
- 12:38Speaker 1: Doing that ten thousand times is going to completely crash
- 12:40Speaker 1: my local machine. It's going to trigger an out of
- 12:42Speaker 1: memory air. How do we stop our programs from just
- 12:45Speaker 1: slowing to a crawl.
- 12:47Speaker 2: Well, if you only care about extracting the outbound links,
- 12:50Speaker 2: forcing Python to allocate memory for every single paragraph, image,
- 12:54Speaker 2: and footer on the page is a massive architectural flaw.
- 12:58Speaker 1: Right, it's a waste.
- 12:59Speaker 2: Let's to solve this, you need to work smarter. Beautiful
- 13:01Speaker 2: Suit provides a highly advanced optimization tool called a soup strainer.
- 13:05Speaker 1: A soup strainer that sounds like a kitchen tool.
- 13:07Speaker 2: It acts exactly like one. It's a method for partial parsing.
- 13:10Speaker 2: Instead of forcing the system to read and parse an
- 13:13Speaker 2: entire massive document, the soup strainer limits the parsing to
- 13:17Speaker 2: just a tiny subset of the page.
- 13:19Speaker 1: How does it do that without reading the whole page? First? Though?
- 13:22Speaker 2: It operates at the C level parser boundary before the
- 13:25Speaker 2: Python objects are ever even created, so as ALEXML streams
- 13:29Speaker 2: through the raw bite data, the soup strainer acts as
- 13:33Speaker 2: an interceptor.
- 13:34Speaker 1: Okay, so if I can figure it to only look
- 13:36Speaker 1: at anchor.
- 13:36Speaker 2: Tags, the moment it sees a paragraph tag, the strainer
- 13:40Speaker 2: evaluates it, sees it's not a link, and immediately discards it.
- 13:44Speaker 2: The tag never becomes a Python object. It never enters
- 13:47Speaker 2: your system's ram.
- 13:48Speaker 1: Oh wow, so the only things that actually get instantiated
- 13:50Speaker 1: in memory are the exact links I.
- 13:53Speaker 2: Asked for exactly. The strainer filters out all the heavy text,
- 13:56Speaker 2: the tracking scripts, the formatting, and hands you a lightweight
- 13:59Speaker 2: highighly efficient soup object to work with. It takes a
- 14:03Speaker 2: fraction of a millisecond to iterate through.
- 14:05Speaker 1: That's a profound optimization. And can I combine that with
- 14:08Speaker 1: the other stuff we talked about like rejects.
- 14:10Speaker 2: Absolutely, you can pass regular expressions right into the strainer.
- 14:14Speaker 2: You can tell it to only parse elements where the
- 14:16Speaker 2: ID contains the word link for example. That is incredible
- 14:19Speaker 2: In large scale data harvesting or cybersecurity auditing, efficiency is paramount.
- 14:25Speaker 2: Parsing only what you need saves massive amounts of compute
- 14:28Speaker 2: time and cloud hosting costs.
- 14:30Speaker 1: It fundamentally shifts the whole process from just brute force
- 14:33Speaker 1: to actual surgical precision.
- 14:35Speaker 2: It really does well.
- 14:36Speaker 1: Let's briefly recap the journey we've been on today. We
- 14:38Speaker 1: started with the necessity of using LexML to dynamically repair
- 14:42Speaker 1: broken HTML trees. Then we move from simple find and
- 14:45Speaker 1: final commands into upgrading our filters with rejects pattern matching.
- 14:50Speaker 2: Being very careful to avoid catastrophic backtracking, of course naturally.
- 14:54Speaker 1: And then when string matching wasn't enough, we learned how
- 14:57Speaker 1: to pass custom Python functions into the parser to handle
- 15:00Speaker 1: complex logic. We tackled the messi reality of absolute versus
- 15:04Speaker 1: relative links using erlib dot parse bypassed JavaScript rendering issues
- 15:08Speaker 1: with headless browsers, and finally we sped up the entire
- 15:11Speaker 1: massive operation with soupstrainers.
- 15:13Speaker 2: It's a really robust tool set, and you know, to
- 15:16Speaker 2: make sure these concepts actually stick. I want to leave
- 15:18Speaker 2: you with a brief thought exercise.
- 15:20Speaker 1: I love a good exercise. What is it?
- 15:22Speaker 2: Imagine you are scraping a massive repository of scientific articles.
- 15:27Speaker 2: You've got hundreds of outbound links, but you only want
- 15:30Speaker 2: to extract the ones leading specifically to Wikipedia.
- 15:33Speaker 1: Okay, so ignoring internal links and other external sites. Right.
- 15:37Speaker 2: How would you combine a custom function with a final
- 15:40Speaker 2: command or a soup strainer to get just those?
- 15:43Speaker 1: That's a good one.
- 15:44Speaker 2: Think about it. You'd need to write a function that
- 15:46Speaker 2: first checks if the freff attribute even exists to avoid errors,
- 15:51Speaker 2: and then checks if that attribute specifically contains the substring
- 15:54Speaker 2: Wikipedia dot org.
- 15:56Speaker 1: Yeah. That layers the logic perfectly, shows how you had
- 15:59Speaker 1: to explicitly fine every step, and.
- 16:01Speaker 2: That actually leads me to a final sort of broader
- 16:03Speaker 2: implication for you to maul over. Beautiful soup gives humans
- 16:07Speaker 2: incredible power to surgically extract data based on these rigid,
- 16:11Speaker 2: explicit rules.
- 16:12Speaker 1: That the Web is always changing, so those rules can
- 16:13Speaker 1: break exactly.
- 16:14Speaker 2: So as we move into the era of advanced AI
- 16:17Speaker 2: and computer vision, what happens when an artificial intelligence starts
- 16:20Speaker 2: writing its own custom scraping functions dynamically? Oh?
- 16:24Speaker 1: Wow?
- 16:24Speaker 2: What happens when an AI can just look at the
- 16:26Speaker 2: visual layout of a page, understand the context of a
- 16:29Speaker 2: table like a human does, and harvest the Web's data
- 16:33Speaker 2: faster and more resiliently than any developer writing manual rules
- 16:37Speaker 2: ever could.
- 16:38Speaker 1: That is an incredible paradigm shift. To think about a
- 16:41Speaker 1: scraper that just adapts to structural changes autonomously, without you
- 16:45Speaker 1: having to rewrite the soup strainer. The HTML wouldn't even
- 16:48Speaker 1: matter anymore.
- 16:49Speaker 2: It's definitely the frontier we are heading toward.
- 16:51Speaker 1: But until we reach that level of fully autonomous AI extraction,
- 16:55Speaker 1: you still need to know how to navigate the raw
- 16:57Speaker 1: markup yourself. Thank you so much, thanks for joining us
- 17:00Speaker 1: on this exploration today. We hope this deep dive equips
- 17:03Speaker 1: you to build faster, cleaner, and more resilient data pipelines.
- 17:07Speaker 1: Keep refining your logic, keep profiling your memory, usage, and
- 17:10Speaker 1: keep diving deep into the code