Can the crawler write pictures and text and save them at the same time?

recently, I have been learning about crawlers. They usually either climb pictures or climb text. Recently, I thought about climbing the cover and title profile of Douban book page, thinking about saving it together, but I didn"t seem to see this method
, so I wanted to ask if there is a way for crawlers to save pictures and text on one page at the same time, and the format can be
doc such as doc, html. There is a library docx that can write pictures and text to a doc file, but you need to download pictures first and then add pictures to them. As follows

clipboard.png

is there a way for crawlers to access data, download pictures to save when they encounter a picture format, save text when they encounter text, and finally open it to see text and pictures
Thank you!

Apr.05,2021

is difficult to handle, because whether it is a picture or text, an initialized picture connection or text content, it is a string string
if, The picture link is' http://www.baidu.com/image.png story. What do you do at this time? Therefore, you must first know whether your subject is a picture or text, and then you can do the corresponding download picture or save the text content.

Menu