for i,section in enumerate(section_element):
with open("snapdeal{}.jpg".format(i),"wb") as file:
url_img=section.img.attrs['src']
rsp=requests.get(url_img)
if i<10:
file.write(rsp.content)
else:
break
how can i make section_element start from section_element[1]
right now it starts from section_element[0]
Web scraping doubt
Hey @devchopra999_11c6416ab7f09bbf,
for i,section in enumerate(section_element) change this to -->
for i,section in enumerate(section_element[1:])
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.