How to declare metadata tags using python dominate

475 Views Asked by At
import dominate
from dominate import tags as tags

doc = dominate.document(title="Monitormaneto Data Center EOSP")
with doc:
    tags.meta(<meta http-equiv="refresh" content="30; URL="domain.url")
    tags.style("body{font-family:Helvetica}")
    ...
1

There are 1 best solutions below

1
On

Consider revising the argument passed to tags.meta() in your code:

import dominate
from dominate import tags as tags

doc = dominate.document(title="Monitormaneto Data Center EOSP")
with doc:
    # tags.meta(<meta http-equiv="refresh" content="30; URL="domain.url")
    tags.meta(http_equiv="refresh", content="30; URL=domain.url")
    tags.style("body{font-family:Helvetica}")