CoinMarketCap::LastPrice - CoinMarketCap Scraper: token name, current price in USD
Overview of the scraper

 CoinMarketCap::LastPrice – CoinMarketCap scraper. Collects the token name and current price in USD.
CoinMarketCap::LastPrice – CoinMarketCap scraper. Collects the token name and current price in USD.A-Parser functionality allows you to save the parsing settings for the CoinMarketCap::LastPrice scraper for future use (presets), ), set a parsing schedule, and much more.
Results can be saved in the format and structure you need, thanks to the built-in powerful template engine Template Toolkit which allows you to apply additional logic to the results and output data in various formats, including JSON, SQL and CSV.
Collected Data
- Currency name
- Currency ticker
- Current price in USD
Queries
CoinMarketCap Slug must be specified as queries, for example:
bitcoin
bnb
green-satoshi-token-bsc
...
Output results examples
A-Parser supports flexible result formatting thanks to the built-in template engine Template Toolkit, which allows it to output results in an arbitrary form, as well as in structured forms, such as CSV or JSON
Default output
Result format:
$currency($query): \$$price\n
Result example:
BNB(bnb): $304.73626073939
BTC(bitcoin): $30207.0547397479
GST(green-satoshi-token-bsc): $1.75828189033902
Dump results to JSON
Общий формат результата:
[% IF notFirst;
  ",\n";
ELSE;
  notFirst = 1;
END;
obj = {};
obj.query = query;
obj.currency = p1.currency;
obj.price = p1.price;
obj.json %]
Начальный текст:
[
Конечный текст:
]
Result example:
[{"currency":"BTC","query":"bitcoin","price":19066.5547826873}]
For the "Initial text" and "Final text" options to be available in the Task Editor, , you need to activate "More options".