Skip to content

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

License

Notifications You must be signed in to change notification settings

daniilak/ru_mvd_search_wanted

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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", "[email protected]", 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",
        "[email protected]",
        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())

About

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

Resources

License

Stars

Watchers

Forks

Languages