python:beautifulsoup:start
Inhaltsverzeichnis
Beautiful Soup
Beautiful Soup ist eine Python-Bibliothek zum Auslesen von HTML und XML.
DOCTYPE auslesen
def doctype(soup): items = [item for item in soup.contents if isinstance(item, bs4.Doctype)] return items[0] if items else None
Quelle: Stack Overflow: Get Document DOCTYPE With Beauiful Soup, 2010.
Links
python/beautifulsoup/start.txt · Zuletzt geändert: 2021-05-08 08:18 von a.kamola