fork download
  1. import re
  2. html = """<img src="https://s...content-available-to-author-only...e.com/path/image0.jpg?lastmod=1625296911"><br>
  3. <div><a style="background-image:url(https://s...content-available-to-author-only...e.com/path/image1.jpg?lastmod=1625296911)"</a><a style="background-image:url(https://s...content-available-to-author-only...e.com/path/image2.jpg?lastmod=1625296912)"></a><a style="background-image:url(https://s...content-available-to-author-only...e.com/path/image3.jpg?lastmod=1625296912)"></a></div>"""
  4. images = re.findall(r'https://s2[^\s?]*(?=\?lastmod=\d)', html)
  5. print(images)
  6.  
Success #stdin #stdout 0.03s 9628KB
stdin
Standard input is empty
stdout
['https://s...content-available-to-author-only...e.com/path/image0.jpg', 'https://s...content-available-to-author-only...e.com/path/image1.jpg', 'https://s...content-available-to-author-only...e.com/path/image2.jpg', 'https://s...content-available-to-author-only...e.com/path/image3.jpg']