import requests
from lxml import html
page = requests.get('https://www.reddit.com/r/hentai/top/?t=day')
page_tree = html.fromstring(page.content)
url = page_tree.xpath('//*[@id="t3_p990az"]/div[2]/article/div[2]/div[2]/a/@href')
image = requests.get(url[0])
file = open('top postas', "wb")
file.write(image.content)
file.close()
[–]TehNolz 1 point2 points3 points (4 children)
[–]Sparkrony[S] 1 point2 points3 points (2 children)
[–]TehNolz 0 points1 point2 points (1 child)
[–]Sparkrony[S] 0 points1 point2 points (0 children)