Save webpage with all pictures

Ask questions here, report about problems.
Post Reply
bryan
Posts: 4
Joined: Wed Mar 27, 2019 7:08 pm

Save webpage with all pictures

Post by bryan » Sat Oct 05, 2019 2:03 pm

Is it possible to save the page with all pictures separately, as the browser does. $browser->save_page_as(); saves only html file. It is desirable to add the facility to save all images, and that at some sites the order of the pictures is constantly changing and links to the captcha dynamic.

User avatar
support
Site Admin
Posts: 152
Joined: Fri Feb 22, 2019 3:42 pm

Re: Save webpage with all pictures

Post by support » Sat Oct 05, 2019 2:54 pm

$image->save_to_file_by_number($number,$filepath); - can help - first save all images under the names images\1.jpg, images\2.jpg, etc., then save the html, and in order to change all the links to the pictures on the page and again save the html.

bryan
Posts: 4
Joined: Wed Mar 27, 2019 7:08 pm

Re: Save webpage with all pictures

Post by bryan » Sat Oct 05, 2019 3:37 pm

Thanks

Post Reply