from bs4 import BeautifulSoup import requests result=requests.get("https://www.google.com/") print(result.status_code) print(result.headers) src = result.content print(src) soup = BeautifulSoup(src, 'lxml') links = soup.findAll("a") print(links) print(" ")
2.1m questions
2.1m answers
60 comments
57.0k users