On Wed, Oct 1, 2014 at 8:02 PM, Danny Yoo <[email protected]> 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:
>
> #############################################
> full_item_list = self._soup.find_all('li', {'data-app': '440'})
>
> for item in full_item_list:
>     print item['data-name']
> #############################################
>
> That is to say that what you're getting back from
> self._soup.find_all() is definitely not raw: it's parsed, it's soupy,
> and you can continue to deal with it structurally.
>


OH MY GOD! Super fail, hahaha.

Thanks, bs4 is incredible. I thought they were RAW html data. Thank you!
_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to