Thoughts on Scraping

Someone over in the Privacy Exchange asked about how site owners could prevent crawlers/scrapers from accessing a site’s content, primarily to prevent that content from being used to power generative AI systems. As someone less than thrilled with generative AI and the harvesting of my own posts/articles for Google’s AI Search results, I completely get the concern and it’s one that I share. But reading the abstract for this paper shared in the thread gave me pause:
“In this Article, we contend that scraping must undergo a serious reckoning with privacy law. Scraping violates nearly all of the key principles in privacy laws, including fairness; individual rights and control; transparency; consent; purpose specification and secondary use restrictions; data minimization; onward transfer; and data security. With scraping, data protection laws built around these requirements are ignored.” (source)
Is scraping publicly-available information wrong? Is there a presumption of privacy when it comes to content shared online?
Disclaimer: I’m not a lawyer! Not even close. I’m therefore going to be talking about general principles more than I am about regulations. This is also purely about my personal feelings on the topic, not advice of any kind. If you’ve got thoughts of your own to share, hit me up over at jack@privacyexchange.net.
My Take
I’m conflicted.
On the one hand, I don’t love the idea of my words being taken and remixed for use in an AI model. If OpenAI or Google grab the text from my “Ad Conversion Tracking” post and use it to answer questions without ever attributing that information back to me, I’d be upset. I put time and effort into writing and researching that post and I’d like people to know that those ideas are mine for a whole host of reasons.
But what if someone out there wanted to find every article that mentioned “CCPA” for some sort of broad academic study on how Marketing professionals are responding to privacy legislation? Or if they wanted to feed all my posts to OpenAI for summarization like Readwise Reader does with Ghostreader? Do I care more if it’s a person vs. a company? If someone is making money off of information scraped from my site does that make a difference?
I think in my mind it boils down to questions of intent more than it does to a question of mechanics. Anything published online is published — it’s out there in the world for other people to see and use and browsers themselves rely on the same mechanisms as scrapers (GET requests to retrieve the content of web pages). I don’t think that’s something you can turn off without breaking the internet, and most of the solutions I can think of would effectively start to do that (user-agent blocking is the one anti-crawler/scraper solution that came to mind, but that’s a mess waiting to happen). Any solution around robots.txt will only block those that identify themselves using commonly-agreed conventions, and any content that existed before those conventions were established was likely already scraped, stored, and used. It’s like coming in after a
burglary and saying “well I guess we forgot to make that illegal so let’s do that.” The money is already gone.
Part of me wonders if the conversation on scraping is really more of a conversation around automation than it is a conversation around privacy. I, as a human being, can pretty easily copy and paste information from hundreds if not thousands of posts/articles into a large document, analyze that body of writing, and do all kinds of things with it. As I read that content, it’ll flow into my brain at which point I could generate content based on everything I read without attribution (I’d probably do this involuntarily if I didn’t carefully track sources). I could subject that text to analytical techniques. I could collect everything someone ever wrote and use that to impersonate them, likely with greater success than generative AI tech.
Automated scrapers make all of that faster and easier, but they’re not doing anything we can’t already do ourselves. It just takes less work and it’s happening with scripted algorithms instead of within a human brain.
Is that what makes the difference?
A Word on Scraping in Practice
Let’s take a minute to talk about scraping. Scraping is the process of retrieving information from a web-page using an automated process, and typically relies on grabbing the HTML of a page and parsing it to extract data of some kind.
Retrieving a web page with Python takes 2 lines of code:
import requests
page = requests.get(input(“URL: ")).text
If you run this, page will be set to the raw HTML content of the URL you use.
And it would only take a few more lines to find every link on that page, retrieve its content as well, and continue until you’d retrieved every single page and the content of every single page on the entire site. Past that point, you could do literally whatever you wanted with that data: build a list of every outbound link to see who’s most often cited as a source, see which authors have published the most posts, analyze which web-tracking technology that site is using, etc.
This applies less to full-on platforms like LinkedIn, Twitter, Facebook, etc. which already have mechanisms to prevent this in place. But for a personal site like mine this whole process would likely take seconds not minutes.
Beyond the world of written content, a tool like yt-dlp can download the entire content of a YouTube channel to a user’s computer in one line of code typed into a terminal. It also works with most other sites that host video.
yt-dlp "https://www.youtube.com/@Google/videos"
Using free transcription tech, you could build a corpus of every word a given broadcaster has ever said. It’d take longer than pulling written content since you’re downloading every video, but it’s entirely possible for one person to do at home without the resources of a company. Is that something we should aim to prevent? I’m honestly not sure!
It probably depends on what they’re planning to do with that information. But preventing people from scraping sites in the first place likely isn’t the answer, at least not in my own mind.
Additional Resources
Written by Jack Segal. Shoot me an email with questions or comments, and if you'd like to support my writing, you can send me a tip using Stripe!
Date
2024-07-05Subscribe
Fill out the form to get notified whenever a new post goes live!