I'm using Python with Beautiful Soup to scrap a list of 20 games from Steam (http://store.steampowered.com/tags/en-us/RPG/). But those games are separated not with div, but with an a tag instead. Therefore, I tried to do the following:
all_games=soup.find_all('a',{'class':'tab_item   app_impression_tracked'})
(Those blank spaces exist in Steam's HTML)
However, it returned an empty list instead of all a tags that contained a 'class' called tab_item   app_impression_tracked
I'm not trying to scrap only the game's names, but also its price, discount... And I'm not interested in the link too. I just want to grab the a tag because it contains all the information that I need about the games separately.
Is there a solution?
Solution:
all_games = soup.find('div', {'id':'NewReleasesRows'}).find_all('a', {'class':'tab_item'})
Those spaces were problematic, the real name of the class is tab_item and not tab_item   app_impression_tracked as I thought.
 
     
    