Home > Enterprise >  Edit html file using python
Edit html file using python

Time:04-11

I have scrapped content of the web (css, js and images)

now I want to edit downloaded HTML file to provide absolute path of images, js and css.

for example, the script need to find the source 'src', it must be absolutes path (contain domain) and not relatives (not contain domain).

change from: /static_1.872.4/js/jquery_3.4.1/jquery-3.4.1.min.js To enter image description here

  • Related