Oh Snap!

Please turnoff your ad blocking mode for viewing your site content

Jane Alam

Web Developer & Designer, Code Analyzer & Bug Fixer

How to scrap website data in python using BeautifulSoup | Part 2

/
/
/
158 Views

Scrap website data in python using BeautifulSoup

Continue from part 1

How to scrap website data in python using BeautifulSoup | Part 1

Previous "app.py"

#app.py

import requests
 from bs4 import BeautifulSoup

data_url = requests.get('http://janealam.com')
page = data_url.content
soup = BeautifulSoup(page, 'html.parser')

Let's print some data from our data_url.

#app.py
import requests
from bs4 import BeautifulSoup

data_url = requests.get('http://janealam.com')
page = data_url.content
soup = BeautifulSoup(page, 'html.parser')

print(soup.prettify())

Here we get full website HTML Markup.

Leave a Comment

Your email address will not be published. Required fields are marked *