Open altsheets opened 7 years ago
As far as I can see, lines 25 CoinFactory.js:25:64:
"symbol": tds.eq(4).text().match(/\s([a-z]|[0-9]|@)+\s/i)[0].trim().toLowerCase(),
and column 64 would point to a failing array index [0], so I guess
tds.eq(4).text().match(/\s([a-z]|[0-9]|@)+\s/i)
is empty?
How come?
Has coinmarketcap changed its layout again?
Thanks for looking into this when you find the time.
I have repaired that, see my fork:
altsheets ... /lib/CoinFactory.js#L30
the symbol actually (now?) also appears in the second column.
Quite a bit of the CMC page layout must have been changed recently, so several things needed repair.
I have fixed what I could find, but I am not 1000% sure that everything is correct now.
Please another pair of eyes check my code for correct results, thanks:
https://github.com/altsheets/CoinMarketCapAPI/commits/master?author=altsheets
@Nexuist - pull request?
any idea where this might be coming from?