Skip to main content

Yandex map resources parser library

Project description

ymrp

Requirements

YMRP stands on the shoulders of:

  • python 3.13
  • playwright
  • beautifulsoup4

Installation

Create and activate a virtual environment and then install YMRP:

pip install ymrp

Install playwright dependencies

playwright install chromium
playwright install-deps

Example

Get business reviews from yandex map

from ymrp.parser import Parser

url = 'https://yandex.ru/maps/10875/lomonosov/?from=mapframe&ll=29.770779%2C59.913080&mode=poi&poi%5Bpoint%5D=29.770747%2C59.913078&poi%5Buri%5D=ymapsbm1%3A%2F%2Forg%3Foid%3D1245233699&tab=reviews&z=20.34'

parser = Parser()
reviews = parser.get_yandex_reviews(url)

for review in reviews:
    print(review)

Get business products and services from yandex map

from ymrp.parser import Parser

url = 'https://yandex.ru/maps/10875/lomonosov/?from=mapframe&ll=29.770779%2C59.913080&mode=poi&poi%5Bpoint%5D=29.770747%2C59.913078&poi%5Buri%5D=ymapsbm1%3A%2F%2Forg%3Foid%3D1245233699&tab=prices&z=20.34'

parser = Parser()
products_and_services = parser.get_yandex_products_and_services(url)

for product_or_service in products_and_services:
    print(product_or_service)

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

ymrp-0.6.0.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ymrp-0.6.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file ymrp-0.6.0.tar.gz.

File metadata

  • Download URL: ymrp-0.6.0.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for ymrp-0.6.0.tar.gz
Algorithm Hash digest
SHA256 3a9be925fde114c5f7e027c2a43171f9948743ba1238ea778fd0259d93c43277
MD5 3af3a42790d4cd9ac2424394b7b96572
BLAKE2b-256 602326be928ba7841e6abc2e8b4e846be0550191c10e9734ee546ec36675411b

See more details on using hashes here.

File details

Details for the file ymrp-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: ymrp-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for ymrp-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b68f2383cce0bc0f6a7609c9be279b3b04a3bfcb57848f1dab23504849ee51e9
MD5 623544812f3201754c0ced61988daecd
BLAKE2b-256 adee6c9b0c970c0f6f55fb9c857815f611edb2264f648a9cb32ab49f69c494c0

See more details on using hashes here.

Supported by

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