in reply to Re: Web Scraping with Find / Replace (Mojo::DOM)
in thread Web Scraping with Find / Replace

Thank you for your response. Unfortunately I do not understand your approach or how to include in my script.
  • Comment on Re^2: Web Scraping with Find / Replace (Mojo::DOM)

Replies are listed 'Best First'.
Re^3: Web Scraping with Find / Replace (Mojo::DOM)
by beech (Parson) on Dec 04, 2016 at 20:55 UTC

    Well,

    If you add a base tag to the html content, then there is no need to rewrite relative links into absolute links, its a shortcut provided by html

    The spew part of the code does that with a helper module for creating a file

    Second part shows creating/modifying a base tag with Mojo which will htmlescape the url