Home > Back-end >  Am I in trouble if I used beautiful soup to get data from google.com?
Am I in trouble if I used beautiful soup to get data from google.com?

Time:02-15

I used -

URL = "http://www.google.com"
r = requests.get(URL)
  
soup = BeautifulSoup(r.content, 'html5lib') 
print(soup.prettify())

I was learning python and did not know that web scraping is not allowed.

CodePudding user response:

Short answer: No

Google doesn't allow web scraping, but they don't take any legal action against it. They use a lot of defense systems, so even if you tried to do something bad it would just be blocked.

Just don't worry about it :)

  • Related