Python html crawling key error

i want to crawl img from website

so i made this code, but it said key error.

but there is the key ‘data-origianl’.

why did it say key error. i dont understand

plz help me

for v in pro_list:

if not v.find('div', class_="ad_header"):
print('p.prod_name > a')[0].text.strip())
**print('a.thumb_link > img')[0]['data-original'])**
print('p.price_sect > a')[0].text.strip())

Traceback (most recent call last):
File "C:\Python_Fast\3. crawl\", line 92, in
print('a.thumb_link > img')[0]['data-original'])
File "C:\Program Files (x86)\Python38-32\lib\site-packages\bs4\", line 1401, in __getitem__ return self.attrs[key]
KeyError: 'data-original'

Print the results that you do get and see what’s actually in there.

E.g. take this line:

print('a.thumb_link > img')[0]['data-original'])

and change it to:

print('a.thumb_link > img')[0])

You can then hopefully see what bs4 returned - maybe there is an extra level of indirection required? Maybe the 'a.thumb_link > img' part is wrong and you’re not receiving the HTML element you expect?