View Single Post
Old 03-01-2019, 07:15 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,476
Karma: 27757440
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If you want to check the HTML the script sees, simplpy save it inside preprocess_raw_html something like

Code:
def reprocess_raw_html(self, html, *a):
    open('/path/to/somewhere/on/yuour/computer/file.html', 'wb').write(html.encode('utf-8'))
    return html
kovidgoyal is offline   Reply With Quote