From July 1, 2022, Russia has a system of electronic passes for freight transport weighing more than 12 tonsIt is moving along federal highways. The register of these passes is maintained in a single database. FSUE "Rosdorlesinforg" It contains critical information for logistics companies, freight forwarders and fleet owners. However, manually checking each pass is a time-consuming process, especially for large carriers with hundreds of cars in their fleet.

Automating this task helps pass-register Specialized programs or scripts that extract data from a government database, analyze it and present it in a user-friendly way. Such tools allow you to quickly monitor the status of passes, avoid fines for overdue documents and optimize routes taking into account current restrictions. But how do they work, what data can be legally obtained and how not to break the law when using them? Let's get this straight.

In this article you will find not only technical details of the work of parser, but also practical tips for their application - from choosing a ready-made solution to writing your own script. We'll pay special attention. legal aspectsWhat is allowed and what may result in account suspension or penalties. We will also consider alternative ways to check for passes if automation is not available for some reason.

What is a register of passes of freight transport and why parse it

The register of passes is a centralized database in which all issued permits for the movement of trucks by mass are recorded. more than 12 tons On federal roads. It contains information on:

  • πŸš› Vehicles: state number, brand, model, allowed mass.
  • πŸ“„ Documents.: pass number, date of issue and expiration date, route.
  • 🏒 Carrier: company name, TIN, contact details.
  • βš–οΈ RestrictionsTemporary traffic windows, prohibited sections of roads.

Why is this data important? Without a valid pass, the carrier risks getting a fine before 50,000 rubles (in the art.) 12.21.1 of the Administrative Code of the Russian Federation), and in case of repeated violation - deprivation of rights for 2-4 months. In addition, information from the registry helps:

  • πŸ“Š Plan routes Including the areas closed to trucks.
  • ⏰ Monitoring deadlines Passes and extend them on time.
  • πŸ” Checking counterparties: For example, make sure that the contractor has all the necessary permits.

Manual check of each pass through portal It takes a lot of time, especially if the company has dozens of cars. Here comes the help. parsers Programs that automatically collect data from the registry and output it in a convenient format (Excel, JSON, databases).

πŸ“Š How often do you have to check your truck passes?
Every day.
Several times a week
Once a month
Less
Not checking.

How does the parser of the register of passes: technical details

Parser is essentially a parser. robotIt simulates the actions of a person on a registry site, but does so hundreds of times faster. It can be implemented in different programming languages (Python, JavaScript, PHP), but the principle of operation is the same:

  1. Authorization: parser enters the personal account on the portal pass.rusdorinfo.ru (if required).
  2. Request for data: sends search queries by car numbers, company TINs or pass numbers.
  3. Processing the response: extracts the desired fields from the HTML code of the page or the JSON response API.
  4. Conservation: writes data to a file or database (e.g., MySQL or Google Sheets).

Most of the parsers are used two-way:

  • πŸ”„ ScrapingAnalysis of HTML pages (for example, through libraries) BeautifulSoup or Selenium).
  • πŸ“‘ API requests: refer to the official registry API (if available).

Example of code on Python For simple parsing via API (simplified version):

import requests

url = "https://pass.rusdorinfo.ru/api/v1/permits"

headers = {"Authorization": "Bearer YOUR_TOKEN"}

params = {"vehicle number": "A123BB78")

response = requests.get(url, headers=headers, params=params)

data = response.json()

print(data["permit_number"], data["valid_until"])

Important: The official API of the Pass Register is not publicly documented, so parsing through it can be blocked. The legal way is to use only open data or coordinate access with Rosdorlesinforg.

πŸ’‘

If you write the parser yourself, add delays between queries (e.g., time.sleep(2)) to avoid overloading the server and avoid blocking the IP.

Any automation of work with state databases must comply with the requirements of the Federal Law No. 149-FZ "On Information, Information Technologies and Information Protection" ** Terms of use of the portal Rosdorlesinforg. Let’s see where the line between the permitted and the forbidden is.

Legal methods:

  • πŸ” Use of the publicityavailable without authorization (for example, checking the status of the pass by the car number).
  • 🀝 Official partnership with FSUE "Rosdorlesinforg" to access the API.
  • πŸ“„ parsing own (For example, your company’s list of passes).

Illegal methods (risk of blocking or fine):

  • 🚫 Authorization hacking: Selecting passwords or using other people's accounts.
  • 🚫 DDoS attacks: Massive requests that overload the server.
  • 🚫 Recovery of personal data Third parties (e.g., TINs of other companies).
⚠️ Attention: Unauthorized access to protected databases is subject to liability st. 272 CCRF ("Illegal access to computer information") - a fine of up to 200 000 rubles or imprisonment for up to 2 years.

How do you stay in the legal field?

  • πŸ“œ Explore. user agreement portal.
  • πŸ•’ Do no more. 10 requests per minute (recommended limit).
  • πŸ” Use only. your credentials.
What happens if your IP is blocked?

If the registry server detects suspicious activity (e.g., 100 requests per second), your IP may be temporarily or permanently blocked. In this case, even manual work with the portal will be impossible. To unlock access, you will have to write an official appeal in support of the Rosdorlesinforg with an explanation of why.

Ready-made solutions vs self-written parsers: what to choose

If you are not a programmer, writing a parser from scratch is not a good idea. Fortunately, there are ready-made solutions on the market that cover most tasks. Compare them with the self-written scripts in the table:

Criteria Ready services Self-painted parser
Cost From 5,000 rubles/month (for example) "TransLogistician.", "Auto-Pass") Free (if you write yourself) or ~20,000 rubles for custom development
Functional Template (status check, export to Excel) Customizable (integration with 1C, SMS-alerts)
Reliability High (Developer Support) Depends on your skills (risk of error)
Legal security Usually certified and agreed with the registry The risk of blocking in case of incorrect implementation
Speed of operation Restricted by rate (e.g. 1,000 checks/day) Depends on the server (can be scaled)

Ready services It will be suitable for most companies. They suggest:

  • πŸ“Š Automatic check Scheduled passes.
  • πŸ“§ Notifications Overdue documents by email/SMS.
  • πŸ”„ Integration with accounting systems (1C, Bitrix24).

Self-painted parser It makes sense if:

  • πŸ› οΈ You need it. unique logic (e.g., a GPS tracker).
  • πŸ“ˆ The volume of data exceeds the limits of ready-made services.
  • πŸ”’ You're working with confidential You don’t want to give it to third parties.

β˜‘οΈ Checklist before parser selection

Done: 0 / 5

Step by step instructions: how to use the parser of the register of passes

Let’s look at the example of a popular service. "Auto-Pass" (similarly working) "TransLogistician." and "DorPass"). If you use a self-written script, the steps will be similar, but with technical nuances.

Step 1. Registration and account setting

  1. Go to the service website (for example, autopass.ru).
  2. Register by specifying the company data (TIN, OGRN).
  3. Confirm the email and phone.

Step 2. Loading of the vehicle list

  • πŸ“€ Download the Excel file with the state numbers of your trucks (format: A123BV78).
  • πŸ”„ Or enter the numbers manually in your personal account.

Step 3. Launch of verification

  • πŸ” Select the check type: "Pass status" or "Routes".
  • ⏰ Please indicate the frequency (once a day/week).
  • πŸ“₯ Press "Run" and wait for the report.

Step 4. Analysis of results

The service will generate a table with data:

  • 🟒 Valid passes (duration, route).
  • 🟑 Leaky (Renewable for 5 days)
  • πŸ”΄ Overdue (fine risk!)
⚠️ Attention: If there are status passes in the report "Suspended."This means that there are claims from the traffic police (for example, unpaid fines). Contact me immediately. Rosdorlesinforg To clarify the reasons!
πŸ’‘

Even if the parser shows that the pass is valid, always check the data with the official portal. pass.rusdorinfo.ru before the flight. Technical failures occur in all services.

Alternative ways to check passes without parser

If automation is not available for some reason (such as a small fleet or a limited budget), manual or semi-automatic methods can be used:

1. Official portal Rosdorlesinforg

  • 🌐 Go to the pass.rusdorinfo.ru.
  • πŸ” Enter the state number or pass number in the search bar.
  • πŸ“„ Check status and expiration date.

2. Mobile application "DorPass" (available for Android and iOS)

  • πŸ“± Download the app from App Store or Google Play.
  • πŸ”‘ Sign in through the public services or personal account of the carrier.
  • πŸ”” Enable push notifications for expired passes.

3. Integration with GLONASS/GPS monitoring

Some tracking systems (e.g., Omnicum. or Scout.) have built-in modules for checking the passes. They automatically check the route of the truck with the registry data and warn the dispatcher about violations.

4. Exporting data through Excel

On the portal. pass.rusdorinfo.ru There is a function of unloading the list of passes in .xlsx. This is convenient for small companies:

  1. Go to section. "My passes.".
  2. Press. Export to Excel..
  3. Open the file and sort by column "Duration of validity".
πŸ’‘

Create in Excel. conditionalization for the column "Duration": Passes that expire in less than 7 days will be illuminated in red. This will help you not to miss critical dates.

Frequent mistakes when working with parsers and how to avoid them

Even experienced logisticians face challenges when automating pass checks. Here are the most common mistakes and ways to prevent them:

1. Account blocking due to frequent requests

  • 🚫 Problem: The registry server considers the parser activity as an attack and blocks the IP.
  • βœ… Decision: Set up delays between requests (see below).5-10 seconds) and use proxy servers.

2. Important data

  • 🚫 Problem: The parser gives out outdated information (for example, does not see an extended pass).
  • βœ… Decision: Update the script once a month or use the official API (if available).

3. Errors in the state registers

  • 🚫 Problem: Parser does not find a pass due to a typo in the room (for example, "A123B78" instead "A123BV78").
  • βœ… Decision: Before downloading, check the numbers through the function =CONFIRMING MAKE() Excel.

4. Violation of the law on personal data

  • 🚫 Problem: Parser extracts data from other companies (TIN, contacts), which is prohibited. 152-FZ.
  • βœ… Decision: Set up a filter so that the script only works with your vehicles.

5. Data loss in case of failure

  • 🚫 Problem: The parser server crashed and the last check didn't survive.
  • βœ… Decision: Set up automatic backup of reports in Google Drive or Yandex.Disk..
⚠️ Attention: If your parser suddenly stops working, check if the structure of the site has changed. pass.rusdorinfo.ru. The developers of the portal sometimes update the HTML code, and the script needs revision.

FAQ: Answers to Frequent Questions About Pass Register Parser

❓ Can I use a parser to check other people's car passes?

No, it's in violation. Federal Law No. 152-FZ "On Personal Data". The parser should only work with vehicles owned by your company or your contractors (subject to consent).

❓ How often do I need to update the data in the parser?

It is recommended to check the passes at least less often. 1 time per week. If you have a large fleet of 50+ cars, it is better to configure a daily update. Remember that the status of the pass can change at any time (for example, when blocking the traffic police).

❓ What are the penalties for driving without a pass?

Po Po Po st. 12.21.1 RF Administrative Code, fines are:

  • For the driver: 5,000 rubles.
  • For the official (dispatch manager, manager): 25 rubles.
  • For a legal person: up to 50,000 rubles.

In case of repeated violation, the vehicle may be confiscated.

❓ Can I appeal a penalty for not having a pass?

Yeah, if:

  • The pass was issued, but did not appear in the database due to a technical failure (evidence is needed: screenshots, letters of support).
  • The traffic police inspector made a mistake during the inspection (for example, confused the number of the car).

For an appeal, submit a complaint to DIBD or court within 10 days of the order being issued.

❓ How to check if my IP is blocked on the registry portal?

Signs of blockage:

  • Website pass.rusdorinfo.ru does not open or makes an error 403 Forbidden.
  • The parser stops receiving data (the server response: "Access denied").

To unlock IP, write in support Rosdorlesinforg with an explanation (for example, "there was an error in the script, will not be repeated").