html2text修改图片存储
modify html2markdown source code,the location and format of pictures in html.
old version
note the first line, add the second line, and change the image format to ![](images/image-name)
new version 2020.1.16
add extra code in __init__.py__
:
1 | def __init__( |
modify image format
1 | if tag == "img" and start and not self.ignore_images: |
final image format:
1 | ![](images/2023/xxx.png) |
- 本文标题:html2text修改图片存储
- 创建时间:2021-12-25 14:21:29
- 本文链接:2021/12/25/爬虫/html2text修改图片存储/
- 版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!