RE: Bs4 to List/Dictionary Question 08-07-2020, 10:46 PM
#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


![[+]](https://sinister.li/images/modern/collapse_collapsed.png)