DOM Manipulation with Beautiful Soup — Inserting Tags

Photo by Pichara Bann on Unsplash

We can get data from web pages with Beautiful Soup.

It lets us parse the DOM and extract the data we want.

In this article, we’ll look at how to manipulate HTML documents with Beautiful Soup.

NavigableString() and .new_tag()

--

--

--

Web developer. Subscribe to my email list now at https://thewebdev.info/subscribe/. Email me at hohanga@gmail.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

API3 Enterprise Development Report, November-December 2021, January 2022

Basic Load Testing with Locust

PostgreSQL AWR report

💁🏻‍♀️ Deploying ML model inside Docker Container🐋

Reverse Nodes in k-Group

Sproxy — How and why I developed my own open-source proxy

IOST Mainnet Olympus v3.7.3 Update Now Released!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
John Au-Yeung

John Au-Yeung

Web developer. Subscribe to my email list now at https://thewebdev.info/subscribe/. Email me at hohanga@gmail.com

More from Medium

JavaScript Coding Tutorial — Part 8 — Polygons and Volcanos!

We can add a linear gradient fill to add some hot lava and fire to our volcano.

“For” Loops Explained in Simple English (JavaScript)

Read Local Files with JavaScript without Backend

Is AJAX getting replaced by fetch API()?