Fireship · @fireship

Am I going to jail for web scraping?

Uploaded July 26, 2024 · Length 4:35

Am I going to jail for web scraping?

Summary

web scraping legal and ethical concerns, Computer Fraud and Abuse Act, scraping publicly available data

  • web scraping laws
  • computer fraud and abuse act
  • public data scraping
  • data scraping ethics

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    there's only two types of people in this

  2. 0:01

    world the conformist API consumer and

  3. 0:04

    the Renegade webscraper it's always been

  4. 0:06

    a bit of a gray area to write code that

  5. 0:08

    automatically extracts valuable data

  6. 0:10

    from websites but will you go to jail if

  7. 0:12

    you do it you're stealing right to jail

  8. 0:14

    I refuse to go back to jail but I'm

  9. 0:16

    literally shaking right now because the

  10. 0:18

    US District Court in Delaware just ruled

  11. 0:20

    that booking.com violated the Computer

  12. 0:22

    Fraud and Abuse Act by scraping the Ryan

  13. 0:24

    Air website booking tried to countersuit

  14. 0:27

    for defamation because Ryan Air hurt the

  15. 0:29

    corporation's Fe by calling them an otaa

  16. 0:31

    pirate or online travel agency pirate

  17. 0:34

    not surprisingly the court rejected that

  18. 0:36

    claim but this is not the first time

  19. 0:37

    that web scrapers have battled in court

  20. 0:39

    in today's video we'll look at the legal

  21. 0:41

    and ethical concerns in this case and

  22. 0:43

    find out if my web scraping tutorials

  23. 0:44

    will land you in jail it is July 26 2024

  24. 0:48

    and you watching the code report in this

  25. 0:50

    weird cybernetic post-human world the

  26. 0:52

    data has become more valuable than gold

  27. 0:54

    Google and meta are both trillion dollar

  28. 0:56

    companies built almost exclusively by

  29. 0:58

    collecting data from users to be

  30. 1:00

    exploited by advertisers for the last 30

  31. 1:02

    years humans have voluntarily and

  32. 1:04

    involuntarily filled the worldwide web

  33. 1:06

    with exabytes of data about our crappy

  34. 1:08

    lives and much of this data is freely

  35. 1:11

    available through the lens of a web

  36. 1:12

    browser but the problem is that the raw

  37. 1:14

    data is trapped inside a rock of HTML

  38. 1:17

    code rendering it useless for data

  39. 1:19

    analysis the data becomes valuable

  40. 1:21

    though when it's mined into a clean

  41. 1:23

    Universal format like Json or CSV that

  42. 1:25

    can be fed into machine learning tools

  43. 1:27

    like XG boost or sold to data Brokers on

  44. 1:29

    on the black market and that's where web

  45. 1:31

    scraping comes in I've made tutorials

  46. 1:33

    about how to do it at an industrial

  47. 1:34

    scale using tools like Puppeteer which

  48. 1:37

    can render the content on a website

  49. 1:38

    programmatically click on buttons fill

  50. 1:40

    out forms and ultimately extract

  51. 1:42

    valuable data despite content being

  52. 1:44

    freely available like Amazon product

  53. 1:46

    listings for example many website owners

  54. 1:49

    don't like to be scraped and forbid this

  55. 1:50

    behavior in their terms of service and

  56. 1:52

    robots.txt file but this file is like

  57. 1:55

    the no smoking signs on an airplane it

  58. 1:57

    doesn't actually stop anything from

  59. 1:58

    happening and you can easily enjoy a