
Python
- 112 ответов
- 0 вопросов
82
Вклад в тег
curl -X GET "https://api.coingecko.com/api/v3/coins/list" -H "accept: application/json" | json_pp >> cash_list
cat cash_list | grep -E "id.+bitcoin.+cash"
"id" : "10x-long-bitcoin-cash-token",
"id" : "10x-short-bitcoin-cash-token",
"id" : "1x-short-bitcoin-cash-token",
"id" : "3x-long-bitcoin-cash-token",
"id" : "3x-short-bitcoin-cash-token",
"id" : "bitcoin-cash",
"id" : "bitcoin-cash-sv",
"id" : "bitcoin-free-cash",
"id" : "ebitcoin-cash",
{}[()] = 0
word = 'what
def check_if(value):
list_if = [
('ETH+PASL', 7),
('ETH+DCR', 8),
('/pools', None),
# и так далее
]
for check_v, check_len in list_if:
if value in check_v and ((check_len == len(value)) if check_len else True):
return True
check_if(m.text)