Skip to main content

Py_parse_sber

Overview

It's simple parser of Sberbank, using selenium (firefox geckodriver), where you can see your account currency and transactions for some period.

Getting Started

Requirements

Python 3.6+

Install

The quick way:

pip install py-parse-sber

Desired way:

python3 -m venv venv
source venv/bin/activate
pip install py-parse-sber

Preparing:

Install geckodriver

Download geckodriver and unzip it Make sure it’s in your PATH, e. g., place it in /usr/bin or /usr/local/bin.

Failure to observe this step will give you an error selenium.common.exceptions.WebDriverException: Message: ‘geckodriver’ executable needs to be in PATH.

Run receiving web server

Py_parse_sber will send parsed info to web server. See contracts detail in contracts.yml, which your web server will have to implement for accepting data correct. (for standard was taken project BudgetTracker and his api)

Requirement environment variables

LOGIN  # your sberbank account login
PASSWORD # your sberbank account password
SERVER_URL # main URL where the data will be sent. Example: localhost (or service name in docker-compose.yml)
SEND_ACCOUNT_URL # url 'path' part, where account information will be sent. Example: /send_account
SEND_PAYMENT_URL # url 'path' part, where transaction information will be sent. Example: /send_payment

Optional environment variables

SERVER_SCHEME # Scheme of SERVER_URL, http/https. Default http
SERVER_PORT # Port of SERVER_URL. Default 80
DAYS # period in days to indicate parser restart. Can be used with HOURS.
HOURS # period in hours to indicate parser restart. Can be used with DAYS.

If any of their not set - used 1 day by default.

Linux example

export LOGIN=login
export PASSWORD=password
export SERVER_URL=localhost
export SERVER_PORT=8080
export SEND_ACCOUNT_URL=/send_account
export SEND_PAYMENT_URL=/send_payment

py_parser_sber_run_once # for one-time launch
# or
py_parser_sber_run_infinite # for run in loop with a given period

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Release files for py-parser-sber 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-parser-sber 0.6.0
File Size Uploaded
py_parser_sber-0.6.0.tar.gz 13.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for py-parser-sber 0.6.0
File Interpreter ABI Platform
py_parser_sber-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 27.4 kB

Release files / py_parser_sber-0.6.0.tar.gz

Download URL py_parser_sber-0.6.0.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f029a78ca35663a2b1cb9cfe768a5f526b7adc22cc91dfffabb2f365f2957359
BLAKE2b-256 checksum
How to use checksums
50ea11ecb8a9986ddd55802cd63c506a432b3b06dd6f7db1394b2433d29646cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6

Release files / py_parser_sber-0.6.0-py3-none-any.whl

Download URL py_parser_sber-0.6.0-py3-none-any.whl
Size 14.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ece371a55ad825efb6045d9731d24fbe4764d1214ad5d0189a9a5dffa18b0366
BLAKE2b-256 checksum
How to use checksums
b3e3acc38c8cda8f314a0ae2006fba60c4d6a2b698c8ca38600e7e04c6ee6a8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6

Release history Release notifications | RSS feed

0.7.0

2 release files

This release

0.6.0 This release

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.0.13

2 release files

0.0.12

1 release file

0.0.11

1 release file

0.0.10

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page