Curly bracket use

what is the use of curly bracket in first_row=rows_data[0].findAll(‘td’,{})

Hey @Utkarsh-Madaan-2559055747708288

The second argument is the attr argument of the findAll function. This is a brief summary I found about it in BS documentation:
You can use attrs if you need to put restrictions on attributes whose names are Python reserved words, like class , for , or import ; or attributes whose names are non-keyword arguments to the Beautiful Soup search methods: name , recursive , limit , text , or attrs itself.
image

Hope this helps!

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.