Skip to main content

Parser of information from the website of the Ministry of Internal Affairs Search

Project description

API MVD Search Wanted Client

Поиск указанного человека в базе данных Розыск МВД

Requirements:

Installation

pip install ru_mvd_search_wanted

Usage

Import client:

from ru_mvd_search_wanted.sync import MVDParser

Set proxy:

proxy = "user:pass@host:port"

Use with MVDParser() if you want a context-managed client:

with MVDParser(
    "Фамилия", "Имя", "Отчество", "YYYY", "MM", "DD", "123455@gmail.com", proxy
) as mvd:
    captcha_base64 = mvd.initialize()

    # solve captcha
    # captcha_word = solve(captcha_base64)
    result = mvd.get_result(captcha_word)

    print(result)

Usage (async)

Import client:

from ru_mvd_search_wanted.asynchr import MVDParserAsync

Set proxy:

proxy = "user:pass@host:port"

Use async with MVDParserAsync() Example:

import asyncio

proxy = "user:pass@host:port"

async def main():
    async with MVDParserAsync(
        "Фамилия",
        "Имя",
        "Отчество",
        "YYYY",
        "MM",
        "DD",
        "123456@gmail.com",
        proxy
    ) as mvd:
        captcha_base64 = await mvd.initialize()

        # solve captcha
        # captcha_word = await solve(captcha_base64)
        result = await mvd.get_result(captcha_word)

        print(result)

loop = asyncio.get_event_loop()
loop.run_until_complete(main())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ru_mvd_search_wanted-0.0.4.tar.gz (6.4 kB view hashes)

Uploaded Source

Built Distribution

ru_mvd_search_wanted-0.0.4-py3-none-any.whl (8.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page