Scraping with python issue

Pacific12

Newbie
Joined
Oct 29, 2022
Messages
18
Reaction score
4
Hii, bhw members. This is my first post. I want to know that how can I know legal aspect of scraping a website so that I remain safe. For example, scraping YouTube.

Ps. Only experienced scraper guys reply.
 
Usually, websites indicate their policy about scraping in their terms of conditions. If you want to remain 100% clean legally, that's where you should go have a look :)
 
Websites should have a robots.txt file that states what resources can be scraped by bots among other things.

https://www.google.com/robots.txt
https://en.wikipedia.org/robots.txt
 
If you use proxies, you should also write a function to take your master IP address and compare it each time with the proxy IP before doing an action. Only if the master_ip != proxy_ip, then you continue. Just to be on the safe side and allow you to sleep easy! :D
 
I suggest you take a look at the presentation by Sanaea Daruwalla, Chief Legal Officer at Zyte, at the Web Data Extraction Summit of 2022.
Video:
img404.jpg

Slides: https://info.zyte.com/hubfs/Extract Summit 2022 slides/Extract Summit 2022 - Sanaea Daruwalla.pdf
From what I recall from the presentation, it is suggested to follow the policies of websites, but if you do not explicitly agree to the policies (e.g., on sign-up), it is hard for them to be enforced. (See slide 5)

All videos of the Web Data Extraction Summit: https://www.extractsummit.io/2022-videos/
 
Back
Top