Sponsored by: Oxylabs | Web Scraping and AI: A Quiet but Critical Partnership
Summary
- AI-powered data collection: This video explores how machine learning revolutionizes web scraping, making previously complex projects feasible while reducing engineering overhead and improving data quality.
- Real-time AI enhancement: Learn how scraping fresh, high-quality web data feeds AI systems with up-to-date information for trend analysis, forecasting, and pattern detection.
- Scalable data pipelines: Discover practical use cases—from competitive intelligence to demand forecasting—showing how AI and web scraping form a powerful partnership for data-driven applications.
Sponsored by: Oxylabs | Web Scraping and AI: A Quiet but Critical Partnership

Talk by Ieva Sataite, Python Developer, Oxylabs (Sponsor Speaker)
Behind every powerful AI system lies a critical foundation: fresh, high-quality web data. this video explores the symbiotic relationship between web scraping and artificial intelligence that's transforming how technical teams build data-intensive applications. We'll showcase how this partnership enables crucial use cases: analyzing trends, forecasting behaviors, and enhancing AI models with real-time information. Technical challenges that once made web scraping prohibitively complex are now being solved through the very AI systems they help create. You'll learn how machine learning revolutionizes web data collection, making previously impossible scraping projects both feasible and maintainable, while dramatically reducing engineering overhead and improving data quality. Join us to explore this quiet but critical partnership that's powering the next generation of AI applications.
Databricks Named a Leader in the 2025 Gartner® Magic Quadrant™ for Data Science and Machine Learning Platforms: https://www.databricks.com/blog/databricks-named-leader-2025-gartner-magic-quadrant-data-science-and-machine-learning
Build and deploy quality AI agent systems: https://www.databricks.com/product/artificial-intelligence
See all the product announcements from Data + AI Summit: https://www.databricks.com/events/dataaisummit-2025-announcements
FAQs
Why is web scraping critical for AI systems?
Web scraping provides fresh, large-volume data that AI models need to stay current and accurate. This video shows that web scraping and AI form a symbiotic relationship: AI helps automate and maintain scrapers at scale, while scrapers feed AI systems the real-time data needed for trend analysis, forecasting, and model improvement.
What are the main use cases for scraping data in AI?
This video identifies three major buckets: analyzing the past (historical trends and competitor data), predicting the future (demand forecasting, price optimization), and powering AI models (training data for machine learning). Each addresses critical business decisions using scraped web data.
How does AI solve traditional web scraping challenges?
Machine learning addresses the complexity of maintaining scrapers across dynamic websites. AI can automatically adapt to page layout changes, handle anti-scraping measures, and validate data quality. This dramatically reduces engineering overhead and makes previously infeasible scraping projects both viable and maintainable.
What data can you scrape and use with AI?
Web scraping can collect competitive prices, search rankings, travel demand signals, social media sentiment, job postings, real estate listings, and more. This video emphasizes that combining scraped external signals with enterprise data on Databricks creates powerful AI applications.
Full transcript
Well, hello everyone. Thank you for joining me today. I am web scraping engineer at Oxabs, a marketleading web intelligence collection platform. And web scraping is our core expertise. My daily work involves developing and maintaining tools helping our clients easily gather the data they need. Today I'm going to talk about something that often gets overlooked in discussions around AI. Uh data collection and more specifically web scraping plays a big role in both powering AI and benefiting from it.
Ultimately, web scraping and AI forms a powerful partnership. And in this session, we'll take a deeper look at why. So, the web is a great source of upto-date information on anything you can think of. And when we need large volumes and of this information, what do we do? We scrape it. So, simply put, web scraping is automated collection of data from websites. By extracting this data at scale, companies can analyze and leverage this information in countless creative ways.
So under the hood, a scraper, usually a script or a specialized tool, sends an HTTP request much like a browser does. This request goes through a proxy and then reaches a target site which then generates a response, typically an HTML document, which travels back the same route. This request response cycle is the foundation of web scraping. Scrape data powers many applications uh but most of them can fit into three major buckets which are analyzing the past, predicting the future or powering AI models.
For example, you can scrape the web the same web page in regular time intervals uh intervals and compare how that information changes over time. A popular use case is scraping Google search results uh checking how well your company ranks amongst those results and comparing that to the rank a week ago or scraping scraping historical data can help businesses spot important trends too. For instance, companies can scrape competitors prices uh and sales information and after analyzing this information, they can see how how uh uh customer behaviors and pricing strategies change over time and that can help them make smarter decisions. or using historical scrape data combined with predictive analytics, businesses can predict future market demands.
For example, if you if you continuously scrape travel websites, you could forecast how busy a location will be a month or a year later. This can help hotels or airlines adjust their prices dynamically. Or you scrape tweets mentioning your company name. You spot a few negative mentions early and now you can spot uh you can predict if a PR storm is coming your way or is it just a minor drizzle. Now let's talk about how scrape data powers AI in two different phases.
Let's start with the training phase. So uh you might have already heard of common crawl. It's a nonprofit organization archiving web public web content since 2007. Many popular LLMs have been trained on their corpus, but it's come it comes with the limitations. Firstly, it's not that huge. Common crawls archive is massive, but it's far from being a copy of the internet. They only add around three to five billion web pages a month.
And that's not that much data considering uh there's over a billion websites with thousands of web pages with content that may change daily or even hourly. Also, it gets blocked a lot, meaning it misses on a lot of protected content. Uh anyone can use the same data set too. That means there's no competitive edge and the data all the data there requires significant cleaning efforts too and it's also outdated. They only updated uh only once a month and you normally only get text HTML.
So there's a modality problem as well. Now freshly scraped data however fixes all these issues. It solves the limitations of public data sets like common crawl by providing the data exactly when you need it without unwanted gaps or or unacceptable content. It's tail it can be tailored to your specific needs as well meaning that you can only you can scrape uh precise websites and topics that are relevant for your business.
It's fully up to-date and accurate reflective of current moment and trends and it can be multimodal as well. So scraping can provide you audio, video, images and other other valuable data types too. Okay. And now uh for the generation phase we this can be split into two different ways where that scrape data can be used here. So in cache augmented generation AI pulls from cached previously scraped stored data. It's fast but it can be outdated and this this approach doesn't really reflect real time changes.
While in retrieval augmented generation data is craved in real time as the model needs it. Rag applications generates generate content and serve the results to their users on the fly. And uh to power rag applications, scrapers need to be accurate and fast as ultimately scraping becomes live data connector. So scrape data sounds very useful, right? Well, uh web scraping might sound straightforward at first glance. you know, just uh send the bot, grab some data, done.
But anyone who spend time scraping at scale knows it's anything but simple. Web scraping comes with a wide range of complex uh challenges. But today, let's just go through uh two main ones that web scraping engineers face daily. So, the absolute biggest obstacle in web scraping is simply getting content you want without getting blocked. It's not like that websites are hostile to visitors, but there aren't really rolling out welcome ads to bots either.
So, today many websites use sophisticated methods to identify automated traffic and block it whenever the spot signs. If your scraper's fingerprint isn't quite right, maybe it mishandles something very subtle like uh TLS handshake or HTTP headers, you get blocked. So if you're building a scraper, your scraper's fingerprint need to be needs to look like it's a natural users. Even geographic locations can matter. For example, uh imagine scraping an e-commerce website that sells goods only in the US.
If your scraper appears from outside the US, it's game over again. And even even if you've done everything correctly, uh you may still hit that capture and now the challenge is to detect it so you can trigger every try. Making the things tougher, antibot technologies constantly evolve. Scrapers must continuously adapt. And finally, each website implement their own protections and uh antibot solutions. Meaning this is even more complicated when we are scraping at large scale and many different websites.
Now remember I mentioned uh detecting bad content. Now imagine you're scraping a product page. You send the request and you get this HTML back. Now, it looks like a mess, right? But the big question now is, is this what we expected? Well, it turns out it wasn't what we expected at all. It was a capture instead. So, the server detected something suspicious and instead of the real content, it served us this. Now recognizing it and uh to trigger a retry is not that easy because capture layouts vary widely across sites and worse these layouts constantly change.
So to reliably detect that this was not what we expected and the blocked content we need to keep track of all these different layouts and structures otherwise we may just treat garbage HTML as valid data. Now, let's say you got the right page. Great. But it's still tangled mess of HTML, a chaotic jumb jumble of code and then tags, often with far more irrelevant data than useful information. Your task now is to dig out relevant data points, product names, prices, ratings.
Typically, you'd use parsing solutions and libraries and write manual selectors for each data point you want. Let's say snippet I'm showing here is from a product page and now you're specifically looking for a price. I will highlight it. But trust me, without the highlights, spotting these data points is really challenging. You have to manually set data selectors identifying each unique element. But your challenges aren't over yet.
Websites constantly change these layouts and structures. So uh when it happens your carefully constructed parsers break and that is not a question of if that is a question of when. Now now uh multiply that across thousands of sites and it basically becomes a maintenance nightmare. Well, luckily for some of the headaches that scraping presents, we now have AI as a powerful ally to help us and tackle these the challenges head on.
How? Well, one effective way is through what's called classification model. These models learn patterns across HTML structures from many different websites. First comes data collection and identification. um you collect large volumes of HTMLs uh and then you identify relevant features and structure. So XPAB def uh visual position even nesting and uh let's say TAC frequency. Next, we move to accurately labeling uh labeling collected data by identifying and marking raw content according to what it actually represents.
And then we have the model training phase. Here we feed the model labeled examples through multiple iterations. And once a certain threshold of familiar familiarity is achieved, the classification model can accurately identify relevant content even from websites it has never encountered before. Now these classification models can can be used in in many ways, but two that stand out in the context of web scraping are AI response recognition and adaptive parsing.
So uh one big issue uh in scraping is making sure the content you received is actually usable and as I mentioned earlier doing this manually is um is resource extensive and takes a lot of time and effort. This is where AI uh powered response recognition comes in. Uh so websites often return uh status code 200 uh even when your scraper is blocked and you are served with a capture. The classification model uh analyzes HTML content checking if the response contains signs of blocking elements.
Now labeling in in this case is very simple. The each HTML is labeled as either containing block content or not containing block content. But because uh web scraping happens worldwide, the model is trained to recognize blocking elements across diverse set of languages, layouts and styles. Once trained, this AI model uh works within a smart feedback loop. When it detects blocked content, it triggers every try. Uh the second big way AI helps is through what's called adaptive parsing.
Uh parsing basically means extracting structured data. Uh but adaptive parsing goes further. It's adjust automatically uh with each layout change. Traditional parsers rely heavily on fixed selectors um and needs ma maintenance. For example, when trained on product pages, the model can consistently uh parse product titles, prices, attributes, uh images, and other details. Instead of depending on manual manually written fragile rules, the AI identifies meaningful patterns in the HTML structure itself.
It allows it allows it to generalize effectively to new websites and new layouts. As the model processes and learns from more example, it becomes even smarter, more accurate, and resilient to changes. Now, for the demo, uh we will be shifting uh gears a tiny bit. uh we won't focus on the tools that we just discussed but I will show you another fun way and how AI can be used in the context of uh web scraping. So let me introduce you to our playground.
Uh this is where you can actually test various requests and uh put some parameters. You can do that manually over here where I'm just showing now. Uh you can put the gel location. What layouts do you want? Is it desktop or or or mobile? Or you can use our oxy copilot which will generate uh will generate the request for us. So here we just put some URLs. Uh the more you put the more accurate it will be uh but the more time it may take.
So I'm just going to put free. Uh here we can put other parameters that we want. Maybe we want to scrape it from another gel location or maybe or maybe we want a slightly different layout for example in mobile. And here we simply put uh what we want to extract, what data points we want to extract. So here we are trying to be as uh precise as possible just like with any AI really. So the prompt needs to be quite detailed for it to do things correctly.
Yes. So we are just going to be extracting a few product details. So this is going to be search results with a list of products and for each product we'll be extracting certain data points. So what will happen now? Uh this prompt is sent to the uh API and as you can see in the background the code is slightly changing already. So it's putting some details in there. It does take a minute but just because I put three URLs so it is scraping all three uh and analyzing the three different layouts of the HTML.
So it does it can take a second and here we have a result. So we can double check there's a price the title and the rating pars there uh we can uh change the uh types of our data in here manually. Or we can simply uh adjust um adjust uh the prompt here. So what I didn't like here it was that uh the number and the currency symbol is in one field. So I'll just separate it and ask uh for the price as number and then currency separately and then generate again.
So what is what this AI is generating is what's called custom parsing uh custom parsing instructions. So instead of using uh instead of using uh our built-in uh parsers, you can send custom parsing instructions just for the data points you want. And here uh AI generates it for you. So as you can see the it fixed now the price is as number. We save it as you and now we have all the requests with all the parsing instructions ready and all the example codes are there uh ready to be used.
So you can just take that code and use it in your implementations. Okay. So when it comes to implementing web scraping solutions, businesses face a crucial decision. Should we build our own scrapers or should we buy readymade solutions? Now building your own scrapers uh scraping infrastructure gives you full ownership but it comes it comes at the cost of high initial investments uh you know people resources and potentially the slower start.
On the other hand purchasing solutions can dramatically reduce costs and minimize complexity. the tradeoff potentially less comp complexes flexibility sorry okay and that brings us to the end of my presentation and just to conclude uh scraping supplies fresh high quality data for AI while AI makes scraping smarter and faster. Thank you for listening.
Learn more about the Databricks Data and AI platform.
The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.