C
C
CityzenUNDEAD2021-03-11 11:21:32
Parsing
CityzenUNDEAD, 2021-03-11 11:21:32

Unusual sql query in link?

I want to write a parser for a website with news, but I can't just parse the page. it is the news that is loaded in a separate json file. Pokyvyryalsya, found this request and here's what it looks like

{"where":{"and":[{"publish":true},{"publishAt":{"lte":1615445087411}},{"or":[{"removeAt":null},{"removeAt":{"gt":1615445087411}}]}],"type":"news"},"order":"publishAt DESC","include":["views"],"limit":10}

This request is encoded in the link. But the question is that here the request is tied to a specific date, and I would like to always get the 10 most recent elements.
Can anyone come across this, is it possible to somehow correct the request so that it does not rely on the date, but on the last 10 elements, for example?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question