How python lawyers looked for clients on kad.arbitr

The idea was born several years ago and was simple to the point of banality: kad.arbitr.ru - the site where civil and other cases "live" - ​​is just a bottomless storehouse of valuable information for a law firm. The case files should contain companies that have been sued and that do not yet know about it, are not ready, cannot or do not want to go to courts themselves. All that remains is to find these firms and reach out to them.





No sooner said than done. Armed with python and a basic knowledge of its syntax, a couple of lawyers decided to figure out what would come of it.






At the beginning

Everything was going well. Going to the site kad.arbit.ru with the help of selenium, going to the calendar of court sessions, indicating the court and choosing the month on the calendar - the site gave the scheduled sessions:





And here the first problems began. If there were too many meetings. And in the opinion that kad.arbitr is more than 1000, then the site spit out:





Hmm. Why, then, is this information even needed if it cannot be viewed?





But, come on, the lawyers were not greedy and missed these days, moving into available ones. The following picture opened up:





It remained to collect all this in some csv bag, for example. At the same time, keeping the case, the defendant company and the link to the case. It turned out something like the following - to look .





, .





, :





  • , - , ;





  • , , , - , , ;





  • . , . , ( , ). .





  • , - , , , .





    - , , , . - .





    * , (, . ) python csv .





    - , , .





. Pyhton , . , , (), ( ).





Python , , - .





? ! , CTRL+C, CTRL+V ...





. , . python, konvert-online.ru





- .





, .





, . , .





, kad.arbitr.ru c selenium , , .





Code and instructions for review - download .








All Articles