seco

Authored Comments

I think that Selenium or BeautifulSoup is much better and easier.
Like this:

tags = res.findAll("h3", {"class": "post-title"})

or this:

tags = res.findAll("span", "a" "img")

Also you can use regex:

import re
tags = res.findAll("img", {"src": re.compile("\.\./uploads/photo_.*\.png")})

I've taken these examples from this tutorial:
https://likegeeks.com/python-web-scraping/

Hope that helps.