Xpath gets absolute links

The link to the picture crawled by

xpath is a relative link:
div [@ class="thumb"] / a picturehref. The result is 19.jpg
how to get an absolute link, similar to http://www.example.com/19.jpg

.

clipboard.png

is there any good way? thank you very much!

Mar.22,2021

there is no good way to take out the original value first, and then calculate the absolute URL based on the current URL. Specific algorithm can be Baidu: js relative to the URL to the absolute

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