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.

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-1b3f3cb-2c484.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-1b3f3cb-2c484.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?