Skip to content

Commit bc79fee

Browse files
author
Simon Tan Yu Jing
committed
Fixing bug during scraping as a result of the additional thumbnail added.
1 parent 28e00d5 commit bc79fee

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ExchangeBot.py

100644100755
File mode changed.

functions.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ def updateCoin(coin, coin_to_exchanges):
8181
# Using a dictionary to store exchanges
8282
exchanges = dict()
8383
while(i < len(rows)):
84-
exchange = (list(list(rows[i])[3].children)[0]).get_text()
84+
85+
exchange = (list(list(rows[i])[3].children)[1]).get_text()
86+
print(exchange)
8587

8688
# Remove $ and commas for volume and convert to int
8789
vol = int(re.sub("[^\d\.]", "", (list(list(rows[i])[7].children)[1]).get_text()))
@@ -108,7 +110,7 @@ def updateCoin(coin, coin_to_exchanges):
108110

109111
# If you're using the cache version, uncomment the line below and comment the one after, vice versa.
110112
# coin_to_exchanges[coin] = exchanges
111-
return exchanges
113+
# return exchanges
112114

113115
else:
114116
print("Error updating " + coin + "!")

0 commit comments

Comments
 (0)