-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON output #57
Comments
Good features. Absolutely needed. At the moment, I am working on the new rendering engine, where such things could be trivially implemented. I could propose a couple of workarounds that you could use until that time. If you don't need colors, you can switch them off by
Combining that with standard UNIX/Linux tools, you can easily achieve
or
|
Good morning. This is nice: However it does not seem to work for curl rate.sx/?n=100. Any way to get it to work for the top 100 or 200 cryptocurrencies? Also what exactly does cut do here? I read man cut but I still don't get exactly what it does in this context. |
I assume it cuts based on horizontal position but it doesn't make sense because 12-18 is not exactly the right position. Instead currency code seems to be positioned between 10-12. |
This also does not work: curl -s rate.sx/?n=100 | cut --output-delimiter="│" -f 3,5 | grep -o ' [A-Z].*%' |
I think, if you just need the data, without any visualization, the best approach would be to use JSON. It is not yet possible, but the feature could be added. |
I wrote a little script to parse it, I think I got the first 100 cryptocurrencies kind of parsed correctly. Yes, maybe JSON output would be useful. A little + sign before the positive changes would be nice too. At the moment the negative changes are preceded by - minus sign but the positive changes are not preceded by anything. Would make it slightly easier to read. |
Hello,
I'm BM. A very nice and polite guy.
Feature requests:
Choosing which columns to display. For example I don't want the graph in the rightmost column.
Output as plain text. When I try to use curl rate.sx > rates.txt the valuable data gets obscured by all the formatting. It's currently not possible to do that. Please make it so that we can simply choose the data we want and output to plain text without coloring, lines, graphics etc. Example:
BTC. Price: 39000. Changes +1%
ETH. Price: 2000. Changes +2%
Thanks.
The text was updated successfully, but these errors were encountered: