BS is for HTML. JSON is... not HTML.
If you’re scraping a site that injects JSON into HTML, yeah, you might use BS to find the `<script>` tag, then parse the JSON inside. But that’s niche.
For most cases, `json` module is all you need.
Tool rec: `jsonformatter.org` to prettify JSON if it’s messy.
If you’re scraping a site that injects JSON into HTML, yeah, you might use BS to find the `<script>` tag, then parse the JSON inside. But that’s niche.
For most cases, `json` module is all you need.
Tool rec: `jsonformatter.org` to prettify JSON if it’s messy.
