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.

Menu