while searching for article tag in html in this video , why did we take the 0th index of the list retured by findAll method , what to do when we have to take a particular image whose index is not known?
Image scrapping using beautiful soup
hey @rohansrivastav ,
findall basically returns a list of those html tags , which you need to fetch.
So, as to get the required article from that list we need to iterate over it.
if you know the correct index value , then you can just directly pass that , else you need to use a for or any other loop.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.