Apr-29-2020, 03:57 PM
So when I run my script here's the output. The other scripts I've created on other sites like Amazon would only come back with the desired info - in this case it would be Classic Fit Solid Wool Suit and $338.00.
python petermillar3.py
$338.00
Classic Fit Solid Wool Suit
Traceback (most recent call last):
File "petermillar3.py", line 55, in <module>
trackprice()
File "petermillar3.py", line 11, in trackprice
price = int(float(getprice()))
TypeError: float() argument must be a string or a number, not 'NoneType'
python petermillar3.py
$338.00
Classic Fit Solid Wool Suit
Traceback (most recent call last):
File "petermillar3.py", line 55, in <module>
trackprice()
File "petermillar3.py", line 11, in trackprice
price = int(float(getprice()))
TypeError: float() argument must be a string or a number, not 'NoneType'