import requests
from lxml import html
url = input('Ссылочка на источник: ')
page = requests.get(url)
tree = html.fromstring(page.content)
a = [x.attrib['src'] for x in tree.cssselect('img') if 'JPG' or 'PNG' in x.
    attrib['src']]
for pic_link in a:
    dickpic = requests.get(pic_link).content
    with open('CUM' + pic_link[-1] + '.png', 'wb') as f:
        f.write(dickpic)

ec24b209d52ab5ace186c96d84ae822470e2dec6
<mask token>

<mask token>
for pic_link in a:
    dickpic = requests.get(pic_link).content
    with open('CUM' + pic_link[-1] + '.png', 'wb') as f:
        f.write(dickpic)

<mask token>
url = input('Ссылочка на источник: ')
page = requests.get(url)
tree = html.fromstring(page.content)
a = [x.attrib['src'] for x in tree.cssselect('img') if 'JPG' or 'PNG' in x.
    attrib['src']]
for pic_link in a:
    dickpic = requests.get(pic_link).content
    with open('CUM' + pic_link[-1] + '.png', 'wb') as f:
        f.write(dickpic)

import requests
from lxml import html
url = input('Ссылочка на источник: ')
page = requests.get(url)
tree = html.fromstring(page.content)
a = [x.attrib['src'] for x in tree.cssselect('img') if 'JPG' or 'PNG' in x.
    attrib['src']]
for pic_link in a:
    dickpic = requests.get(pic_link).content
    with open('CUM' + pic_link[-1] + '.png', 'wb') as f:
        f.write(dickpic)
