F
F
Fridary2016-01-20 19:53:47
PHP
Fridary, 2016-01-20 19:53:47

How can I parse ras.arbitr.ru in php or any other language?

Good evening!
I have 2 questions:
1) is it possible to write in php (or another language, but preferably php) a parser that sends form parameters (filter) to ras.arbitr.ru , as on the site itself, and receives in response a list of documents (in json, xml or any other)? what methods are possible?
I didn't find api on the site, maybe I missed something? Or will it only work with the file_get_content() function?
2) if you manually save all documents to the database in text format, and let's say there are a million of them, then which database is better to choose - mysql or postgresql? Will a database search work more or less quickly, for example, by a phrase (in mysql it is LIKE $search..)?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
Timur Sergeevich, 2016-01-20
@fridary

Sending a POST request! The response is json.
Parse.
After receiving the json, parse you get something like that ..

FileName: "А49-364-2015__20170930.pdf"
Id: "7e4efd11-dffb-4767-acae-d809f01bf5a9"

After you create a link like kad.arbitr.ru/PdfDocument/id/FileName
For example, we have something like http://kad.arbitr.ru/PdfDocument/7e4efd11-dffb-476...
Send file_get_content and get .pdf
5b3841b2330546919f0114b084257798.png2aa88fca51ae43c9ba6db1603b67f336.png

P
peregudov, 2017-11-18
@peregudov

At one time, they also looked for access to the API kad.arbitr.ru and ras.arbitr.ru. Officially, they could not get it, but on the site, the captcha could not be bypassed.
We settled on a service that has been providing us with access to the arbitr.ru API and various other API data on a paid basis for a long time. They can even check how it works for free: arbitr.mchanges.com

D
Dmitry, 2016-01-20
@ExileeD

1. You can
2. Take Postgresql

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question