Can use Selenium,but it's a cooler way here as they use Roman numerals in url.
Then can write it so can use integer to navigate or eg download all images.
Example to get one image.
[Image: I58IDh.png]
Then can write it so can use integer to navigate or eg download all images.
Example to get one image.
# roman.py import requests import os, re from roman_convert import roman_to_int, int_to_roman def make_url(roman_number): return f'https://swordscomic.com/comic/{roman_number}/' def download(url, img_nr): img = requests.get(url) img_name = f'{int_to_roman(img_nr)}.png' with open(img_name, 'wb') as f_out: f_out.write(img.content) if __name__ == '__main__': img_nr = 361 url = f'https://swordscomic.com/media/Swords{img_nr}t.png' roman_number = int_to_roman(img_nr) org_link = make_url(roman_number) print(f'Dowloading --> {org_link}') download(url, img_nr)
Output:E:\div_code\home
λ python roman.py
Dowloading --> https://swordscomic.com/comic/CCCLXI/
CCCLXI.png
[Image: I58IDh.png]
roman_convert
that i import is not written bye me,just code from first hit on Google.