There is an incredible scraping library for Python called BeautifulSoup which will make your life much easier: http://www.crummy.com/software/BeautifulSoup/
BeautifulSoup allows you to select by html tags and/or html attributes such via a css class name. It also handles bad html docs really well but you need to read the docs on how it works. It’s pretty amazing what you can scrape with so few lines of code using this library.
Have fun!
solved Web Scraping particular tags using Python [closed]