Latest / CyberCode Academy / Course 40 - Web Scraping with Python | Episode 4: Ethics, Risks, and the hiQ Precedent
Transcript
- 0:00Speaker 1: Right now as we speak, there are just thousands of
- 0:04Speaker 1: invisible robots crawling through pretty much all of your favorite websites.
- 0:07Speaker 2: Oh absolutely, millions, probably.
- 0:09Speaker 1: Yeah, millions, and they are quietly reading articles, analyzing prices,
- 0:15Speaker 1: logging public behavior, and just copying it all into these
- 0:19Speaker 1: massive hidden databases, the raw data exactly, and these automated
- 0:24Speaker 1: bots they basically dictate the products you're recommended, they influence
- 0:27Speaker 1: who gets hired, and they serve as the raw fuel
- 0:30Speaker 1: train of the next generation of artificial intelligence. It's called webscraping.
- 0:34Speaker 1: But there's this really uncomfortable question hovering over this entire
- 0:37Speaker 1: digital ecosystem, and it's pretty simple, like, is any of
- 0:41Speaker 1: this actually legal?
- 0:43Speaker 2: Yeah?
- 0:43Speaker 1: That is.
- 0:43Speaker 2: I mean, it really is the defining legal gray area
- 0:47Speaker 2: of the modern Internet, because at its core, web scraping
- 0:50Speaker 2: is just automated web browsing. When you write a scraper,
- 0:53Speaker 2: you're really just programming a machine to do exactly what
- 0:56Speaker 2: a human with a mouse and keyboard would do.
- 0:58Speaker 1: It's way way faster.
- 1:00Speaker 2: Exactly, at a scale and speed that no human could
- 1:03Speaker 2: ever match. But the problem is that our legal frameworks,
- 1:06Speaker 2: they were mostly written for humans holding physical documents, right, Yeah.
- 1:10Speaker 1: Not for server farms downloading millions of pages a second. No,
- 1:15Speaker 1: not at all, which brings us to the core of
- 1:18Speaker 1: today's deep dive. We are going to map out the mechanics,
- 1:21Speaker 1: the legal mind fields, and the true boundaries of web scraping.
- 1:25Speaker 2: It's a wild landscape out there.
- 1:27Speaker 1: It really is. But before we look at the actual
- 1:30Speaker 1: architecture of these bots, we need to establish a very
- 1:33Speaker 1: firm baseline here. Neither of us are practicing attorneys.
- 1:37Speaker 2: Definitely not. Please don't take this as legal counsel, right.
- 1:40Speaker 1: We are just unpacking the technical and legal landscape for you.
- 1:43Speaker 1: But if you are listening to this and planning to,
- 1:45Speaker 1: I don't know, launch some massive commercial scraping operation to build.
- 1:48Speaker 2: A business, you absolutely must seek professional legal advice. Yes,
- 1:52Speaker 2: get a lawyer, because the necessity of a lawyer really
- 1:54Speaker 2: comes down to the fact that webscraping doesn't have a
- 1:57Speaker 2: single universal law governing it. It is. The legal risk
- 2:02Speaker 2: depends entirely on your jurisdiction, the specific methods your bot
- 2:07Speaker 2: uses to access the data, and crucially, and we'll talk
- 2:11Speaker 2: a lot about this, what you intend to do with
- 2:13Speaker 2: that data once it's actually sitting on your hard drive.
- 2:16Speaker 1: So if the law is that muddy. Let's just start
- 2:19Speaker 1: with the technology itself, because there is this massive stigma
- 2:23Speaker 1: attached to this whole concept, right, huge, Like when people
- 2:25Speaker 1: hear the word bot or scraper, they instinctively assume it's
- 2:29Speaker 1: malware or a virus or just something inherently malicious.
- 2:33Speaker 2: Yeah, and that stigma comes from a deep misunderstanding of
- 2:36Speaker 2: how the Internet actually functions. So let's kind of walk
- 2:39Speaker 2: through what happens under the hood.
- 2:40Speaker 1: Let's do it.
- 2:41Speaker 2: So imagine you're opening up your browser, right, and you
- 2:44Speaker 2: type in a web address. Your computer sends what's called
- 2:47Speaker 2: a get request to a server. Okay, that server receives
- 2:50Speaker 2: the request and sends back an HTML document basically just
- 2:54Speaker 2: a big text file four code, right, the raw code exactly,
- 2:57Speaker 2: and then your web browser takes that code and it's
- 3:00Speaker 2: a pretty picture with it fonts, images, layouts, all that stuff.
- 3:03Speaker 1: Okay, So where does the scraper come in.
- 3:05Speaker 2: Well, a web scraper does the exact same thing. It
- 3:07Speaker 2: sends the same G two request, it receives the same
- 3:10Speaker 2: HTML file, but and here's the difference. Instead of painting
- 3:15Speaker 2: a picture, it just sifts through the raw text. Oh okay, yeah,
- 3:18Speaker 2: it's just looking for specific data tags like maybe a
- 3:22Speaker 2: product price or a business address.
- 3:24Speaker 1: So the machine doesn't care about the fonts or the colors,
- 3:26Speaker 1: not at all. It just wants the raw numbers precisely.
- 3:29Speaker 2: And if we look at it through that lens, you know,
- 3:32Speaker 2: if a website is sitting out there in the public
- 3:34Speaker 2: domain and a human manually copying and pasting that data
- 3:38Speaker 2: into a spreadsheet is totally ethical.
- 3:41Speaker 1: Which it is.
- 3:41Speaker 2: People do that all the time, right, then writing code
- 3:44Speaker 2: to automate that exact same process is fundamentally neutral. It's
- 3:48Speaker 2: just a tool. Actually, the entire discoverability of the Internet
- 3:51Speaker 2: relies on this.
- 3:52Speaker 1: You're talking about search engines, aren't you.
- 3:54Speaker 2: Yeah, think about the irony here. People are terrified of bots,
- 3:57Speaker 2: but without Google's web scrapers their spice, the Internet is
- 4:01Speaker 2: just I mean, it's basically a bunch of disconnected hard
- 4:04Speaker 2: drives sitting in dark rooms.
- 4:06Speaker 1: Wow. Yeah, I never thought about it like that, right.
- 4:09Speaker 2: Website owners literally pay thousands of dollars to consultants to
- 4:13Speaker 2: make their sites easier for search engine bots to scrape.
- 4:16Speaker 1: The whole SEO industry exactly.
- 4:18Speaker 2: They structure their HTML specifically so a robot can read
- 4:21Speaker 2: it faster.
- 4:22Speaker 1: So the Internet was practically built to be scraped, which
- 4:25Speaker 1: I guess casts organizations that champion good bots in a
- 4:29Speaker 1: completely different light.
- 4:30Speaker 2: Oh yeah, the Electronic Frontier Foundation, the EFF. They constantly
- 4:35Speaker 2: defend the use of automated data gathering because.
- 4:38Speaker 1: They see it as a tool for transparency.
- 4:42Speaker 2: A prime example they point to is academic research into
- 4:45Speaker 2: algorithmic bias.
- 4:46Speaker 1: Oh fascinating, how did that work?
- 4:48Speaker 2: So researchers have written scripts to scrape property listings on
- 4:51Speaker 2: platforms like Airbnb, and they do this to investigate racial
- 4:55Speaker 2: discrimination by hosts.
- 4:57Speaker 1: I see the mechanics there, because a human researcher could
- 5:00Speaker 1: never manually click through what fifty thousand property listing exactly?
- 5:04Speaker 1: It'd be there for years, right, and then manually log
- 5:07Speaker 1: the host's acceptance rate and cross reference it with the
- 5:09Speaker 1: perceived race of the applicants profile picture. The data set
- 5:13Speaker 1: is just way too large.
- 5:14Speaker 2: It's impossible for a human. You have to deploy an
- 5:17Speaker 2: automated bot to gather enough data to actually prove a
- 5:21Speaker 2: statistical pattern of discrimination.
- 5:23Speaker 1: So the discrimination is effectively hidden by the sheer volume
- 5:27Speaker 1: of data exactly.
- 5:28Speaker 2: And the scraper is the only tool capable of exposing it.
- 5:32Speaker 1: That's a powerful way to frame it.
- 5:33Speaker 2: Journalists use the exact same methods on massive e commerce
- 5:37Speaker 2: sites too.
- 5:38Speaker 1: Like tracking prices.
- 5:39Speaker 2: Yeah, they'll deploy bots from different IP addresses around the
- 5:42Speaker 2: country to track how prices fluctuate for the exact same item.
- 5:47Speaker 1: Well, based on where the user lives or their browsing history.
- 5:49Speaker 2: Right, So the automated gathering of the data becomes a
- 5:52Speaker 2: mechanism for corporate accountability.
- 5:55Speaker 1: Okay, So if the fundamental act of requesting data from
- 5:57Speaker 1: a public server is just you know, st andored internet architecture,
- 6:02Speaker 1: what trips the alarm?
- 6:03Speaker 2: That's the million dollar question, right.
- 6:05Speaker 1: Because it seems like personal research and accountability projects don't
- 6:08Speaker 1: usually attract the FBI. So what actually gets someone in trouble?
- 6:12Speaker 1: Let's tackle the ultimate beginterfere here.
- 6:14Speaker 2: Okay, let's hear it.
- 6:15Speaker 1: Can you actually go to jail for writing a bad script?
- 6:18Speaker 2: Look, screeping a public website by itself will not land
- 6:22Speaker 2: you in a jail cell.
- 6:23Speaker 1: Okay, good to know.
- 6:24Speaker 2: However, and this is a big however, beginners often accidentally
- 6:28Speaker 2: trigger a completely different set of criminal laws.
- 6:31Speaker 1: Wait, really, how.
- 6:33Speaker 2: Because they don't understand how server hardware operates. The catastrophic
- 6:37Speaker 2: mistake happens when a novice writes a script, spins up
- 6:41Speaker 2: a really powerful, high bandwidth cloud server, and tells their
- 6:45Speaker 2: bot to download a websites and entire archive as fast
- 6:48Speaker 2: as possible.
- 6:48Speaker 1: They just like open the floodgates.
- 6:50Speaker 2: They ask the website for tens of thousands of pages
- 6:53Speaker 2: per second. And to understand why this is a massive problem,
- 6:56Speaker 2: you have to look at the target server.
- 6:58Speaker 1: Okay, put us in the server shoes.
- 7:00Speaker 2: So a web server has a finite amount of memory, right,
- 7:03Speaker 2: and it uses these things called worker threads to handle
- 7:06Speaker 2: incoming requests.
- 7:07Speaker 1: Got it.
- 7:07Speaker 2: Every time your bot asks for a page, it occupies
- 7:10Speaker 2: one of those threads. So if you demand ten thousand
- 7:12Speaker 2: pages a second, your bot consumes all the available memory.
- 7:16Speaker 1: Oh, I see where this is going. So when a
- 7:18Speaker 1: legitimate human user tries to visit the site, the server
- 7:22Speaker 1: essentially says sorry, I'm busy talking to this spot, and
- 7:25Speaker 1: the human just gets an air page.
- 7:27Speaker 2: Worse than that, the server's operating system eventually runs out
- 7:30Speaker 2: of RAM trying to queue all these thousands of requests,
- 7:33Speaker 2: and the entire machine crashes. Wow, And to the website
- 7:37Speaker 2: administrator and to law enforcement, this does not look like webscraping.
- 7:41Speaker 2: What does it look like it looks identical to a
- 7:44Speaker 2: distributed denial of service attack a DDAs attack.
- 7:48Speaker 1: Oh man, it's like the digital equivalent of sending ten
- 7:51Speaker 1: thousand decoy taxis to the front door of a hotel
- 7:53Speaker 1: all at once.
- 7:54Speaker 2: That is a perfect analogy.
- 7:56Speaker 1: The real guests can't get in, they can't get out,
- 7:58Speaker 1: and the hotel's business just completely grinds to a halt.
- 8:01Speaker 2: That is the exact mechanism and disabling a commercial server
- 8:05Speaker 2: through a flood of automated traffic that violates federal anti
- 8:09Speaker 2: hacking laws.
- 8:10Speaker 1: So if the authority is knock on your door, it's
- 8:12Speaker 1: not because you were copying data.
- 8:13Speaker 2: Exactly, It's because you destroyed a company's ability to operate.
- 8:17Speaker 1: Okay, that makes the boundary line for criminal behavior pretty clear.
- 8:20Speaker 1: Just you know, don't crash the server and don't hack, right,
- 8:23Speaker 1: And by hacking we mean actively bypassing security, right, like
- 8:27Speaker 1: stealing a database password or exploiting a vulnerability in the
- 8:31Speaker 1: code to access private files.
- 8:33Speaker 2: Yes, bypassing authentication to view data you are not authorized
- 8:38Speaker 2: to see is a crime. That is computer intrusion, got it.
- 8:41Speaker 2: But assuming you write a polite script, you know you
- 8:44Speaker 2: add deliberate delays between your requests so you don't overwhelm
- 8:47Speaker 2: the server and you only look at publicly available pages.
- 8:51Speaker 1: Jail is off the table, Okay, phew, but the courtroom
- 8:55Speaker 1: is not, is it.
- 8:55Speaker 2: No?
- 8:56Speaker 1: Definitely not, because if criminal charges aren't the primary threat
- 8:59Speaker 1: for a polite scraper, civil lawsuits definitely are. Oh absolutely,
- 9:03Speaker 1: And depending on the size of the company you're dealing with,
- 9:05Speaker 1: a massive civil suit could easily bankrupt you in legal
- 9:08Speaker 1: fees before you ever even see a judge.
- 9:10Speaker 2: It happens all the time.
- 9:11Speaker 1: So what are these companies actually suing for if I
- 9:14Speaker 1: didn't hack them? What's the claim?
- 9:16Speaker 2: Well, the legal architecture of a scraping lawsuit usually rests
- 9:19Speaker 2: on two main pillars. The first one is copyright infringement, okay,
- 9:23Speaker 2: and this hinges entirely on what you do with the
- 9:26Speaker 2: data after you've scraped it.
- 9:27Speaker 1: All right, let's theorize here. Let's say I write a
- 9:30Speaker 1: script and I scrape a massive database of raw factual data. Okay,
- 9:35Speaker 1: like what say, historical weather temperatures or the final scores
- 9:41Speaker 1: of every baseball game played in the last fifty years.
- 9:44Speaker 1: No one actually owns facts, right, correct?
- 9:47Speaker 2: Raw facts are generally not subject to copyright protection. You
- 9:50Speaker 2: cannot copyright the fact that it was seventy two degrees
- 9:53Speaker 2: in Chicago yesterday.
- 9:54Speaker 1: Right, that makes sense. But what if I scrape a
- 9:56Speaker 1: cooking website, like I download their entire database of proprietary recipes. Ah,
- 10:02Speaker 1: and this includes their specific measurements, their unique instructions, and
- 10:06Speaker 1: all those personal anecdotes they write about the.
- 10:08Speaker 2: Dish right, the classic recipe blog post exactly.
- 10:11Speaker 1: And then I take all that scrape data and I
- 10:13Speaker 1: publish it as my own paid mobile app. I've crossed
- 10:15Speaker 1: a massive line, there, haven't I.
- 10:17Speaker 2: You've crossed several. You have created what the law calls
- 10:20Speaker 2: a derivative work.
- 10:22Speaker 1: A derivative work.
- 10:23Speaker 2: Okay, you took someone else's copyrighted creative expression and you
- 10:27Speaker 2: built a new commercial product on top of it.
- 10:29Speaker 1: And they are not going to like that.
- 10:31Speaker 2: No, they are going to sue you. Monetizing scraped creative
- 10:34Speaker 2: content is a very very fast way to receive a lawsuit.
- 10:38Speaker 1: Okay, So copyright covers the actual content.
- 10:41Speaker 2: What is the second pillar, breach of contract? Specifically the
- 10:44Speaker 2: terms and conditions of the website?
- 10:46Speaker 1: Oh boy, this is where we talk about logging in,
- 10:49Speaker 1: isn't it?
- 10:49Speaker 2: Yes, it is the moment you type a username and
- 10:52Speaker 2: password into a website, the entire legal landscape shifts dramatically. Also, well,
- 10:58Speaker 2: a public website is kind of like walking down a
- 11:00Speaker 2: public street and looking at storefronts. You can look at
- 11:02Speaker 2: whatever you want, but logging into an account is like
- 11:05Speaker 2: signing a contract to enter a private club. When you
- 11:08Speaker 2: click I agree, or simply use the logged in service,
- 11:11Speaker 2: you are legally bound by their terms of service.
- 11:14Speaker 1: And let me guess, almost every major platform's terms of
- 11:18Speaker 1: service explicitly forbids automated data collection by users almost universally.
- 11:24Speaker 2: Yes, if you write a bot that logs into your
- 11:27Speaker 2: personal social media account and it just starts screeping the
- 11:30Speaker 2: private profiles of your connections, you are actively breaching a
- 11:35Speaker 2: legal contract.
- 11:36Speaker 1: So they don't even have to prove you stole creative content.
- 11:38Speaker 2: Nope, the platform doesn't need to prove copyright infringement at all.
- 11:42Speaker 2: They just need to prove you broke the rules you
- 11:44Speaker 2: agreed to when you created the account.
- 11:47Speaker 1: Okay, that distinction between public browsing and logged in access
- 11:51Speaker 1: is critical. Extremely Let's map out the practical implications of
- 11:54Speaker 1: this for you. Listening, If someone is sitting down to
- 11:56Speaker 1: write their very first script, what are the safe zones
- 12:00Speaker 1: and what are the absolute danger zones?
- 12:02Speaker 2: Okay, let's start with the safest zone. The safest environment
- 12:05Speaker 2: is one where the website explicitly invites.
- 12:07Speaker 1: Automation and once you just scrape them.
- 12:10Speaker 2: Right. Many modern platforms offer an API and Application programming
- 12:14Speaker 2: interface right APIs. Think of an API like a dedicated
- 12:17Speaker 2: drive through window designed specifically for code.
- 12:20Speaker 1: Oh I like that. So instead of a scraper walking
- 12:22Speaker 1: in the lobby, ripping up the HTML and frantically looking
- 12:25Speaker 1: for the price.
- 12:26Speaker 2: Tag exactly, instead of that mess, the bot just pulls
- 12:29Speaker 2: up to the API window, asks for the price, and
- 12:32Speaker 2: the server hands over a clean, perfectly formatted piece of data.
- 12:37Speaker 1: It's just so much more efficient.
- 12:39Speaker 2: It is. And the beauty of an API is that
- 12:41Speaker 2: it acts as a programmatic contract. The website owner sets
- 12:45Speaker 2: strict rate limits, say they only allow one hundred requests
- 12:49Speaker 2: per minute, okay, and they issue you a developer key
- 12:52Speaker 2: If you use their API within their rules, your legal
- 12:55Speaker 2: risk is essentially zero.
- 12:57Speaker 1: Okay. But what if there is no API? Say I
- 13:00Speaker 1: want to buy a used car, and I write a
- 13:02Speaker 1: simple script to scrape local dealership websites every morning just
- 13:06Speaker 1: to track their inventory Okay, I'm not logging in and
- 13:09Speaker 1: I'm just looking at public pages? Is that safe?
- 13:11Speaker 2: Personal projects like that carry incredibly low risk. You are
- 13:15Speaker 2: just automating your own manual search for your own private use.
- 13:19Speaker 1: I'm not selling the data exactly.
- 13:21Speaker 2: You aren't publishing it. You aren't selling a competing product.
- 13:23Speaker 2: The worst case scenario there is usually just that the
- 13:26Speaker 2: dealership server identifies your bot's behavior and they temporarily block your.
- 13:30Speaker 1: IP address, which is annoying, but not a lawsuit. So
- 13:34Speaker 1: personal use on public sites is generally safe. Where does
- 13:37Speaker 1: the danger zone begin?
- 13:38Speaker 2: The danger zone begins the very moment you touch personally
- 13:42Speaker 2: identifiable information or PII.
- 13:45Speaker 1: Okay PI.
- 13:46Speaker 2: If your bot is scraping names, physical addresses, phone numbers,
- 13:51Speaker 2: or email addresses, you are walking into a massive mindfield
- 13:55Speaker 2: of global privacy laws.
- 13:56Speaker 1: I imagine the European Unions. GDPR makes this ticular terrifying.
- 14:00Speaker 2: Oh, GDPR is completely uncompromising.
- 14:03Speaker 1: Yeah.
- 14:03Speaker 2: If you scrape a public directory and that directory happens
- 14:07Speaker 2: to contain the personal data of European citizens, you are
- 14:10Speaker 2: subject to their privacy regulations.
- 14:12Speaker 1: Even if it's already public.
- 14:13Speaker 2: Yes, it does not matter that the website owner put
- 14:15Speaker 2: the data out in public. The act of you gathering it,
- 14:19Speaker 2: storing it, and processing it without the explicit consent of
- 14:22Speaker 2: those individuals. That is a massive liability.
- 14:25Speaker 1: Wow. So PII is basically toxic waste for a scraper.
- 14:27Speaker 1: Just don't touch it. Not touch What else? What's the
- 14:29Speaker 1: other dangers on commercial competition?
- 14:32Speaker 2: If you scrape data from a massive tech giant to
- 14:36Speaker 2: build a product that directly competes with them or you know,
- 14:39Speaker 2: undermines their business model, they will unleash their legal department
- 14:44Speaker 2: on you. Oh bury you Yeah, And we know exactly
- 14:47Speaker 2: what that looks like because we have a recent high
- 14:49Speaker 2: profile case study that actually pushed all of these theoretical
- 14:52Speaker 2: concepts right into a federal courtroom.
- 14:54Speaker 1: Oh, this is a perfect transition. Let's look at the
- 14:56Speaker 1: legal showdown between high q Labs and LinkedIn.
- 14:59Speaker 2: This is a old case.
- 15:00Speaker 1: Set the board for us. Who is high Q Labs?
- 15:03Speaker 2: So, hi q Labs was a data analytics company and
- 15:06Speaker 2: their entire business model was predicated on webscraping. Okay, they
- 15:10Speaker 2: specifically targeted LinkedIn, But and here's the crucial detail, High
- 15:14Speaker 2: q did not log into LinkedIn accounts.
- 15:17Speaker 1: They stayed on the public street, so to speak.
- 15:18Speaker 2: Exactly They only scraped public profiles, the profiles that literally
- 15:22Speaker 2: any user on the Internet could view without a password.
- 15:25Speaker 1: And what were they doing with all this public resume data?
- 15:28Speaker 2: They analyzed the data to create what they called talent
- 15:31Speaker 2: Analytics software. They sold a product to major corporations that
- 15:35Speaker 2: predicted when an employee might be updating their skills and
- 15:39Speaker 2: basically preparing to look for a new job.
- 15:42Speaker 1: Oh, I can see why LinkedIn hated this. Oh, they
- 15:44Speaker 1: despised it because LinkedIn's entire mote is their user data.
- 15:48Speaker 1: They want to be the ones selling premium recruiting and
- 15:51Speaker 1: analytics tools, right, They definitely don't want a third party
- 15:54Speaker 1: scraping their platform to sell a competing analytics product.
- 15:57Speaker 2: Exactly, So LinkedIn initiated a technical arms race. They didn't
- 16:02Speaker 2: just send an angry letter at first. They implemented IP blocking,
- 16:06Speaker 2: meaning what they identified the IP addresses of high q servers,
- 16:10Speaker 2: and they configured their firewalls to just drop any connection
- 16:14Speaker 2: attempts from those machines.
- 16:15Speaker 1: So tiz so a technical block. How did hiq respond to.
- 16:18Speaker 2: That by utilizing rotating proxy servers?
- 16:21Speaker 1: Oh?
- 16:21Speaker 2: Sneaky very Instead of connecting directly, high q routed their
- 16:25Speaker 2: bots through thousands of different IP addresses all around the.
- 16:28Speaker 1: World, which makes it impossible for LinkedIn to easily block
- 16:31Speaker 1: them without also blocking you know, legitimate human users exactly.
- 16:35Speaker 2: It became this intense technical game of cat and mouse.
- 16:38Speaker 1: So when the technical blocks failed, LinkedIn deployed the lawyers.
- 16:42Speaker 2: They did. They sent a formal, seasoned assist letter.
- 16:45Speaker 1: But wait, what law were they actually relying on to
- 16:48Speaker 1: stop the scraping of public pages.
- 16:50Speaker 2: They invoked the Computer Fraud and Abuse Act the CFAA.
- 16:54Speaker 1: Okay, hold on, let's look at the history of that.
- 16:56Speaker 1: The CFAA is a federal law passed in what nineteen eight, Yes.
- 17:01Speaker 2: The glorious era of dial up modems and giant mainfrom computers.
- 17:05Speaker 1: Right, so LinkedIn tried to weaponize a Cold War era
- 17:08Speaker 1: anti hacking law, a law written literally a decade before
- 17:12Speaker 1: the modern web browser was even invented, to stop someone
- 17:15Speaker 1: from looking at public web pages.
- 17:17Speaker 2: That was the strategy. The legal argument was deeply technical.
- 17:20Speaker 2: So the CFAA criminalizes unauthorized access to a computer system.
- 17:24Speaker 1: Right.
- 17:25Speaker 2: LinkedIn argued that by sending a formal cease and desist letter,
- 17:28Speaker 2: they had explicitly revoked high q's authorization to visit their
- 17:32Speaker 2: public servers. Oh wow, right, So, therefore, by using proxies
- 17:35Speaker 2: to bypass the IP blocks and continue scraping, LinkedIn claimed
- 17:38Speaker 2: hi Q was engaged in federal hacking.
- 17:41Speaker 1: That is a completely wild interpret.
- 17:42Speaker 2: It was a massive stretch.
- 17:44Speaker 1: LinkedIn essentially argued that a cease and desist letter acts
- 17:47Speaker 1: as this magical legal force field around a public website,
- 17:51Speaker 1: turning any subsequent visit into a cyber crime.
- 17:54Speaker 2: Yeah. And Hiq realized that if this argument actually stood
- 17:58Speaker 2: up in court, their entire company would be destroyed overnight.
- 18:01Speaker 1: That's what do they do?
- 18:02Speaker 2: They filed a lawsuit against LinkedIn.
- 18:05Speaker 1: The scraper sued the tech giant.
- 18:07Speaker 2: They did. Hi Q asked a federal judge to grant
- 18:10Speaker 2: an injunction forcing LinkedIn to stop blocking their bots.
- 18:13Speaker 1: No way.
- 18:14Speaker 2: Yeah. They argued that LinkedIn was illegally interfering with their
- 18:17Speaker 2: business by restricting access to public information.
- 18:20Speaker 1: This is like the ultimate test case for the whole industry.
- 18:23Speaker 1: Does a company have the legal right to use a
- 18:25Speaker 1: nineteen eighty six hacking law to lock bots out of
- 18:28Speaker 1: public data?
- 18:29Speaker 2: The whole tech world was watching.
- 18:30Speaker 1: What did the court actually decide?
- 18:32Speaker 2: It went all the way up to the Ninth Circuit
- 18:34Speaker 2: Court of Appeals in California, and in twenty nineteen, the
- 18:37Speaker 2: court handed down a massive victory for high Q and
- 18:40Speaker 2: the web scraping industry.
- 18:41Speaker 1: Wow.
- 18:42Speaker 2: The judges ruled that the automated scraping of publicly accessible
- 18:45Speaker 2: data does not constitute a violation of the Computer Fraud
- 18:49Speaker 2: and Abuse Act.
- 18:50Speaker 1: That is a phenomenal precedent. The court basically said, Look,
- 18:54Speaker 1: if the front door to your website is wide open
- 18:56Speaker 1: to the general public, a bot walking through that door
- 19:00Speaker 1: is not a hacker.
- 19:01Speaker 2: Exactly bypassing an IP block on a public site is
- 19:04Speaker 2: not the same as breaking a password.
- 19:06Speaker 1: Right.
- 19:06Speaker 2: The court recognized that applying the CFAA to public websites
- 19:10Speaker 2: would effectively criminalize a massive portion of the modern Internet.
- 19:14Speaker 1: Because it would mean that violating a website's terms of
- 19:16Speaker 1: service could theoretically make you a federal hacker.
- 19:19Speaker 2: Right, and the judges outright refuse to stretch the nineteen
- 19:22Speaker 2: eighty six law that far.
- 19:23Speaker 1: But you know, as with all legal rulings, the devil
- 19:26Speaker 1: is always in the details. This isn't just some blanket
- 19:29Speaker 1: permission slip to scrape anything anywhere, anytime.
- 19:32Speaker 2: Oh far from it. The caveats here are immense. First,
- 19:35Speaker 2: this ruling applies strictly to data that is available to
- 19:38Speaker 2: the general public without authentication, so no logging in Exactly
- 19:42Speaker 2: the moment your bought encounters a login screen, a password
- 19:45Speaker 2: prompt or a paywall, the rules completely change. Bypassing those
- 19:49Speaker 2: barriers is unauthorized access, got it?
- 19:52Speaker 1: And Second, this is a US ruling specifically from the
- 19:54Speaker 1: Ninth Circuit.
- 19:55Speaker 2: Right, it doesn't shield you from the GDPR in Europe,
- 19:58Speaker 2: and it certainly doesn't stop a company from suing you
- 20:01Speaker 2: for copyright infringement or breach of contract if you use
- 20:03Speaker 2: the data improperly.
- 20:05Speaker 1: And importantly, the legal landscape is fluid, isn't.
- 20:08Speaker 2: It Extremely fluid. Technology evolves in a matter of months,
- 20:12Speaker 2: while the courts take years, sometimes decades to catch up.
- 20:16Speaker 2: Companies are constantly testing new legal theories things like trespass
- 20:20Speaker 2: to chattels or misappropriation, just trying to find new ways
- 20:23Speaker 2: to protect their data.
- 20:25Speaker 1: Man, this has been a massive journey through both the
- 20:27Speaker 1: server architecture and the court room. Let's try to synthesize
- 20:31Speaker 1: the core takeaways here for you listening good idea, the
- 20:34Speaker 1: act of web scraping itself, the technical process of automating
- 20:38Speaker 1: an HTTP request, and parsing the HTML response is fundamentally neutral.
- 20:44Speaker 1: The modern Internet relies.
- 20:45Speaker 2: On it absolutely. The legal risk really does not stem
- 20:48Speaker 2: from the code you write. The risk stems entirely from
- 20:50Speaker 2: the context. It comes down to two main variables. How
- 20:53Speaker 2: are you accessing the data and what are you doing
- 20:56Speaker 2: with it?
- 20:57Speaker 1: Okay? To make sure these boundaries are crystal clear, I'm
- 20:59Speaker 1: it pitches aario to you. All right, y me, let's
- 21:02Speaker 1: see if we can spot the red flags we just
- 21:04Speaker 1: talked about. This is a quick review exercise. Imagining you
- 21:07Speaker 1: write a Python script Okay, okay. This script automatically logs
- 21:11Speaker 1: into a private, password protected investment forum that you happen
- 21:15Speaker 1: to be a member of.
- 21:16Speaker 2: Oh.
- 21:17Speaker 1: Your script parses the forum's user directory, downloads the personal
- 21:21Speaker 1: email addresses and real names of all ten thousand members,
- 21:25Speaker 1: and then you use that list to launch a competing
- 21:29Speaker 1: paid financial newsletter.
- 21:30Speaker 2: Wow, Okay. That scenario is basically a masterclass in how
- 21:34Speaker 2: to attract a devastating lawsuit.
- 21:36Speaker 1: Right, let's break down the violations.
- 21:38Speaker 2: First off, the script bypassed an authentication wall the log in.
- 21:41Speaker 1: Yeah.
- 21:41Speaker 2: By logging into the private forum, you subjected yourself to
- 21:44Speaker 2: their terms of service, which you immediately breached by using
- 21:47Speaker 2: automated collection tools inside their walled garden.
- 21:50Speaker 1: So that's a clear breach of contract. Yep.
- 21:53Speaker 2: Second, the data collected was personally identifiable information PI. Right,
- 21:58Speaker 2: you screped ten thousand real names and personal email addresses
- 22:01Speaker 2: without their consent. That exposes you to severe privacy law liabilities.
- 22:07Speaker 1: And finally, the application of the data.
- 22:09Speaker 2: Right, you didn't gather this for academic research or just
- 22:12Speaker 2: personal analytics. You use their private user base to launch
- 22:16Speaker 2: a competing commercial product for your own profits.
- 22:19Speaker 1: So you really just hit the trifecta of legal danger zones.
- 22:22Speaker 2: There you did. If you spotted those three major flaws
- 22:25Speaker 2: while listening, you are well on your way to understanding
- 22:28Speaker 2: the true boundaries of web screeping.
- 22:30Speaker 1: It's all about context.
- 22:31Speaker 2: It really is. The reality is that we are operating
- 22:34Speaker 2: in this wild digital landscape where the code simply moves
- 22:37Speaker 2: faster than the legislature.
- 22:39Speaker 1: Yeah, we are applying laws written for floppy discs to
- 22:42Speaker 1: artificial intelligence and automated.
- 22:43Speaker 2: Data pipelines exactly, and until comprehensive modern digital data laws
- 22:48Speaker 2: are written, ambiguity is really the only certainty we have.
- 22:52Speaker 1: It really changes how you look at the screen doesn't it.
- 22:54Speaker 1: As you browse the web today, You know, as you
- 22:57Speaker 1: read a news aggregator, compare flight prices, or just look
- 23:00Speaker 1: at a curated social feed, take a second to look
- 23:04Speaker 1: past the user interface.
- 23:05Speaker 2: Yeah, you have to wonder, ask yourself how much of
- 23:07Speaker 2: the information in front of you is actually put there
- 23:10Speaker 2: by a human and how much of it was quietly,
- 23:12Speaker 2: endlessly gathered for you by an invisible bot.