Thanks Peter
###
(2) attrs is a dict, so iterating over it will lose the values. Are you sure
you want that?
###
Yes initially I want just the keys as a list so I can choose to filter them out
to only the ones I want.
# getAttr
Thanks very much will get my function up and working.
Cheers
Sayth Renshaw wrote:
> Hi.
>
> I want to use a function argument as an argument to a bs4 search for
> attributes.
>
> I had this working not as a function
># noms = soup.findAll('nomination')
> # nom_attrs = []
> # for attr in soup.nomination.attrs:
> # nom_attrs.append(attr)