I found several answers on the Internet, but my case is not quite standard, since along with the link to the file, additional attributes may appear, and nesting can also change. here is the link:
http://misite.ru/sites/default/files/styles/760_______/public/62242.jpg?itok=cQO_3H5R
I think a reliable way to extract the file from the line is as follows:
The file always ends in .jpg I somehow extract a part of the line, from / (not including) to .jpg (inclusive), which will be my 62242.jpg file.
but I do not know how to implement this code.
.jpg, do you mean the file name? - vp_arthurl.split('/').pop().split('?')[0]? - vp_arthвытащить файл из урл, I execute the http request) So it’s clearer? - vp_arth