Python Forum

Full Version: how to store data from the soup in the loop?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Guys,

How can i store data from the soup in the loop?

I would append it to the empty list, however, then i can't set objects/variables by using find_all and find, because i can't use those attributes in a list.

Basically i want to loop over 10 pages, collect data from all of them into one place and then use find and find_all to set objects
Very difficult to answer without seeing code.