Python Web Scraping BeautifulSoup

PYTHON 2 weeks ago 768 views
S

sujeetkumar713

21 public snippets
768 Views
0 Comments
0 Saves

Description

Python web scraping tutorial using BeautifulSoup and requests.
Python Web Scraping BeautifulSoup.py
import requests
from bs4 import BeautifulSoup

html = requests.get('https://example.com').text
soup = BeautifulSoup(html,'html.parser')

print(soup.title.text)

Comments (0)

Add Comment

No comments yet. Be the first to comment!