私はdifflib.HtmlDiff
クラスを使用しており、2セットのテキスト(WebサイトからのHTML)を使用して関数を呼び出していますが、テーブルを作成するとき
html_diff = difflib.HtmlDiff()
print html_diff.make_table(previous_contents, fetch_url.page_contents)
ただし、これは文字ごとに比較しているように見え(テーブル行ごとに1文字)、100kしかない2セットのhtmlの4.3MBtxtファイルになります。
docファイルには次のように書かれています。
Compares fromlines and tolines (lists of strings) and returns a string which is a
complete HTML file containing a table showing line by line differences with
inter-line and intra-line changes highlighted.
しかし、そうではないようです。
助言がありますか?