We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5ec670 commit 00317e4Copy full SHA for 00317e4
1 file changed
plugins/amazon.py
@@ -75,7 +75,12 @@ def amazon(text, _parsed=False):
75
r"|Spedizione gratuita)", item.text, re.I):
76
tags.append("$(b)Free Shipping$(b)")
77
78
- price = item.find('span', {'class': ['s-price', 'a-color-price']}).text
+ try:
79
+ price = item.find('span', {'class': ['s-price', 'a-color-price']}).text
80
+ except AttributeError:
81
+ for i in item.find_all('sup', {'class': 'sx-price-fractional'}):
82
+ i.string.replace_with('.' + i.string)
83
+ price = item.find('span', {'class': 'sx-price'}).text
84
85
# use a whole lot of BS4 and regex to get the ratings
86
try:
0 commit comments