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

 

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

Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.

Not readable? Change text. captcha txt
Free VestaCP File Manager, reset mysql