M
M
med1um2019-03-19 22:56:37
Parsing
med1um, 2019-03-19 22:56:37

Give me an idea how to parse one page?

Tell me what kind of tricky way to protect against parsing is used here:
https://app.flipsidecrypto.com/fcas-scores
?
Is it possible to get data (ranking value) from this page?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Evgen, 2019-03-20
@med1um

Take the key from the script

return n = new E("a7936778-4f87-4790-889f-3ab617271458")
,
It is usually static: a7936778-4f87-4790-889f-3ab617271458
Make a POST request to
Body: {"size":1000,"change_over":7,"metrics":["fcas"]}
Get everything in JSON.
Example:
curl 'https://platform-api.flipsidecrypto.com/api/v1/assets/metrics?api_key=a7936778-4f87-4790-889f-3ab617271458' --data-binary '{"size":1000,"change_over":7,"me}'ics":["fcas"]}

H
hzzzzl, 2019-03-19
@hzzzzl

in short, look :D
they add divs with crypts when scrolling, so that on the page at the same time there is only what fits into the screen,
I sooooo zoomed out through the chrome console, so as many as 213 "cards" fit on the page,
and then I went through the selectors, class names although they are as they are, but it seems to work

name = '._34THYs32bhje4xSvoxAZx3'
health = '._3x2gQl_JNOeByBffSJ6z3q'
elems = document.querySelectorAll('.sc-eHgmQL.exgINJ')
[...elems].map(elem => ({name: elem.querySelector(name).textContent, health: elem.querySelector(health).textContent}))

D
Dmitry, 2019-03-20
@LazyTalent

The site sends a post request to https://platform-api.flipsidecrypto.com/api/v1/ass... and receives all data in json format. Your task is to repeat this request.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question