Re: [Tutor] Beautifulsoup4 question

2014-10-01 Thread Juan Christian
On Wed, Oct 1, 2014 at 9:37 PM, Juan Christian wrote: > OH MY GOD! Super fail, hahaha. > > Thanks, bs4 is incredible. I thought they were RAW html data. Thank you! > Not everything is that easy, hahaha. So, I can get everything I want, but this part: http://media.steampowered.com/apps/440/ico

Re: [Tutor] Beautifulsoup4 question

2014-10-01 Thread Juan Christian
On Wed, Oct 1, 2014 at 8:02 PM, Danny Yoo wrote: > Hi Juan, > > What you should be getting back from the call to find_all() should > already be dictionary-like. Although they *print* like HTML, they're > really soups. > > So you should already be able to do: > > #

Re: [Tutor] Beautifulsoup4 question

2014-10-01 Thread Danny Yoo
Hi Juan, What you should be getting back from the call to find_all() should already be dictionary-like. Although they *print* like HTML, they're really soups. So you should already be able to do: # full_item_list = self._soup.find_all('li', {'data-app

[Tutor] Beautifulsoup4 question

2014-10-01 Thread Juan Christian
I have this part of the code - full_item_list = self._soup.find_all('li', {'data-app': '440'}) - that gives me this: Very long output (~ 211 lines): http://pastebin.com/WLTtgVZz Now I need to filter this RAW data, what I need is to convert this data to something like a list of dicts in Python, so