AttributeError: 'NoneType' object has no attribute 'text'
vjaykrsna opened this issue · 0 comments
python fk.py
| | | __ | \ | | ___ | |()/ () ___ _ __
| | | |/ / | | |/ _ | | | |_| |/ _ \ '|
| | | < | |\ | () | || | | | __/ |
|| ||_\ || _|___/ _||| ||___||
Traceback (most recent call last):
File "/data/data/com.termux/files/home/Flipkart-Notifier/fk.py", line 97, in main
if soup.find('button', class_ = '_2AkmmA _3-iCOr wvj5kH').text == 'NOTIFY ME':
AttributeError: 'NoneType' object has no attribute 'text'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/data/data/com.termux/files/home/Flipkart-Notifier/fk.py", line 105, in main
if soup.find('button', class_ = '_2AkmmA _2Npkh4 _2MWPVK').text == ' ADD TO CART':
AttributeError: 'NoneType' object has no attribute 'text'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/data/data/com.termux/files/home/Flipkart-Notifier/fk.py", line 130, in
main()
File "/data/data/com.termux/files/home/Flipkart-Notifier/fk.py", line 126, in main
if soup.find('button', class_ = '_2AkmmA _2Npkh4 _2MWPVK _18WSRq')['disabled']:
TypeError: 'NoneType' object is not subscriptable