Parser of information from the website of the Ministry of Internal Affairs Search
Project description
API MVD Search Wanted Client
Поиск указанного человека в базе данных Розыск МВД
Requirements:
- Python 3.7+
- httpx
- beautifulsoup4
- fake-useragent
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for ru_mvd_search_wanted-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04274db26e2b1cc830156b5ba97535adcc0d7ea90a662799d3919ac089d27c6a |
|
MD5 | bd9725aa09154ae65dba5951394b747a |
|
BLAKE2b-256 | 24546b0ff5aa260e89c274fd23bc94e88e3f58a87c71caa63025036f1a463cbf |
Close
Hashes for ru_mvd_search_wanted-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4b24c5f193891c1e6d1797752f895cdee37767e97c973a7e34a76f2315de987 |
|
MD5 | 4cf899bd2974fdec4bd41e8398f4a8e2 |
|
BLAKE2b-256 | 88723ab860276a5e8c67b78f96ec8ae12a2237911541ace8b8206a03c4f704a8 |