How does Python save the captured text and pictures to word??

the scenario goes like this:

has obtained the text and picture of the article, how can it be saved as word (the saved text and pictures are in the same order as the web page).

text of ps: article: text content plus hyperlink to picture, similar to:

:

<p style="text-align: center;"><a href="http://www.****.com/wp-content/uploads/2018/09/2022_000001.jpg"></a>

:

:

<p style="text-align: center;"><a href="http://www.****.com/wp-content/uploads/2018/09/2022_000001.jpg"></a>

anyway, there are a lot of text, a lot of pictures

ps: picture: the picture downloaded to the local area has already been downloaded to the local area

the question is a little abstract. If there is any deficiency, I will add it. Thank you

.
Jul.15,2021

python-docx.readthedocs.io/en/latest/index.html" rel=" nofollow noreferrer "> https://python-docx.readthedo.
uses this.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eb0b41-22fe.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eb0b41-22fe.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?