HTMLDocument

HTMLDocument

Gambaran Umum

HTMLDocument adalah kelas dalam FOSS Aspose.Html untuk Python.

Titik masuk tingkat atas untuk mengurai HTML menjadi pohon Document.

Kelas ini menyediakan 3 metode untuk bekerja dengan objek HTMLDocument dalam program Python. Metode yang tersedia meliputi: load, parse, parse_fragment. Semua anggota publik dapat diakses oleh aplikasi Python mana pun setelah memasang paket Aspose.Html FOSS untuk Python.

Metode

Tanda TanganDeskripsi
`parse(html: strbytes, encoding: str
`parse_fragment(html: strbytes, context_element: “Element
`load(path: “strpathlib.Path”)→“Document”`

Lihat Juga

 Bahasa Indonesia