Skip to content

Instantly share code, notes, and snippets.

View Aeron's full-sized avatar
🚀

Eugene Glybin Aeron

🚀
View GitHub Profile
@Aeron
Aeron / megabalance.py
Last active June 27, 2017 02:45
Simple example (CLI) of how to get MegaFon balance data. Required `requests` and `baker`, but can be made without them easily. *Megafon is a Russian mobile carrier*.
#!/usr/bin/env python
# coding: utf-8
import os
import requests
import baker
from xml.etree import ElementTree
BALANCE_URL = 'https://moscowsg.megafon.ru/MEGAFON_BALANCE/MGFSTF_GET_BALANCE'