Login Register






Bs4 to List/Dictionary Question filter_list
Author
Message
RE: Bs4 to List/Dictionary Question #2
(08-07-2020, 11:18 AM)sefefew Wrote: Declare a list,

some_list = []

And inside for loop,

some_list.append(a.text)

Or

Declare a dict,
some_dict = {}

And inside for loop,
some_dict[some_key value] = a.text

Exactly what I was looking for thanks
“I am thankful for all of those who said NO to me. It’s because of them I’m doing it myself.” – Albert Einstein

Reply





Messages In This Thread
Bs4 to List/Dictionary Question - by mudrig - 08-02-2020, 03:34 AM
RE: Bs4 to List/Dictionary Question - by Ciceniss - 09-06-2021, 10:25 PM