i want to fetch html file from some location and convert it to Json format using python.
for below code i m getting output just a text.
from bs4 import BeautifulSoup
import json
html = '<p>Hello</p><p>world</p>'
soup = BeautifulSoup(html, 'html.parser')
things = soup.find_all(text=True)
print(things)