I am new to python. After upgrading to python 3.6 the html module which was earlier used is not working. The error is as below
from html import HTML
ImportError: cannot import name 'HTML'
Objective of the code is to read the data from file and outputing into html page.
The snippet of source code and the version is as below
python --version
Python 3.6.8
Expand|Select|Wrap|Line Numbers
- import time
- import sys
- import os
- import re
- import pymongo
- from pymongo import MongoClient
- import base64
- from datetime import datetime,timedelta
- from html import HTML
- d = datetime.today() - timedelta(hours=0, minutes=180)
- d1 = d.strftime("%d/%B/%Y,%H:%M:%S")
- h=HTML('html','')
- title=h.title('DASHBOARD With PriceLine')