the error is :object is not subscriptable
on : 4rth line
with open(‘s.jpg’,‘wb’)as file:
img_url=article.img.attrs[‘src’]
response = requests.get[img_url]
file.write(response.content)
the error is :object is not subscriptable
on : 4rth line
with open(‘s.jpg’,‘wb’)as file:
img_url=article.img.attrs[‘src’]
response = requests.get[img_url]
file.write(response.content)
sorry on 3rd line not on 4rth