Поиск указанного человека в базе данных Розыск МВД
Requirements:
- Python 3.7+
- httpx
- beautifulsoup4
- fake-useragent
pip install ru_mvd_search_wanted
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)
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())