This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
#Author: https://github.com/old-bibigon | |
#Description: Download data on polling stations or Russia from http://www.vybory.izbirkom.ru/ik/ | |
# | |
import urllib | |
import os | |
import sys | |
import pickle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
#Author: https://github.com/old-bibigon | |
#Description: Parse downloaded data on polling stations or Russia into SQLite database | |
# | |
from sqlalchemy import types, Column, ForeignKey, orm | |
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy.orm import scoped_session, sessionmaker | |
import datetime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new;reference_frame;hourly_data;gps_glonass;link;code;city;location;lon_old;lon;lat;height;agency;clock;dormant | |
0;0;1;1;http://igscb.jpl.nasa.gov/network/site/abmf.html;abmf;Les Abymes;Guadeloupe;298,4725;-61,5275;16,2623;-25;IGN-SGN;INTERNAL;0 | |
0;0;1;0;http://igscb.jpl.nasa.gov/network/site/abpo.html;abpo;Antananarivo;Madagascar;47,2292;47,2292;-19,0183;1552,9923;JPL;INTERNAL;0 | |
0;1;0;0;http://igscb.jpl.nasa.gov/network/site/ade1.html;ade1;Salisbury;Australia;138,6473;138,6473;-34,729;38,2;NGA;Cesium / Rcvr 1;1 | |
0;0;0;0;http://igscb.jpl.nasa.gov/network/site/ade2.html;ade2;Salisbury;Australia;138,6473;138,6473;-34,729;38,2;NGA;Cesium / Rcvr 2;1 | |
0;0;1;1;http://igscb.jpl.nasa.gov/network/site/adis.html;adis;Addis Ababa;ETHIOPIA;38,7663;38,7663;9,0351;2439,154;BKG;;0 | |
0;1;1;1;http://igscb.jpl.nasa.gov/network/site/aira.html;aira;Aira;Japan;130,5996;130,5996;31,8241;314,64;GSI;CESIUM;0 | |
0;0;1;1;http://igscb.jpl.nasa.gov/network/site/ajac.html;ajac;Ajaccio;France;8,7626;8,7626;41,9275;99;IGN-SGN;INTERNAL;0 | |
0;1;1;0;htt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://metro4all.org/ajax/ru/msk/routes/search?station_from=34&portal_from=17360&station_to=120&portal_to=15190 | |
{ | |
"result": [ | |
{ | |
"portals": { | |
"portal_to": { | |
"barriers": { | |
"lift_minus_step": "0", | |
"min_step_ramp": 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"result": [ | |
{ | |
"portals": { | |
"portal_to": null, | |
"portal_from": null | |
}, | |
"route": [ | |
{ | |
"station_type": "regular", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ID,NAME | |
11,Бульвар Рокоссовского 1 | |
12,Бульвар Рокоссовского 2 | |
13,Бульвар Рокоссовского 3 | |
14,Бульвар Рокоссовского 4 | |
21,Черкизовская 1 | |
22,Черкизовская 2 | |
23,Черкизовская 3 | |
24,Черкизовская 4 | |
31,Преображенская площадь 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'''python create_stations_csv_for_logger.py in_csv out_csv | |
''' | |
import csv | |
import sys | |
f_out_name = sys.argv[2] | |
f_in_name = sys.argv[1] | |
f_out = open(f_out_name,'wb') | |
f_out.write("ID,NAME\n") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ID,NAME | |
31,Проспект Ветеранов 1 | |
32,Проспект Ветеранов 2 | |
33,Проспект Ветеранов 3 | |
34,Проспект Ветеранов 4 | |
41,Ленинский проспект 1 | |
42,Ленинский проспект 2 | |
43,Ленинский проспект 3 | |
44,Ленинский проспект 4 | |
51,Автово 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python -u | |
# -*- coding: utf-8 -*- | |
# --------------------------------------------------------------------------- | |
# laadsweb-downloader.py | |
# Author: Maxim Dubinin (sim@gis-lab.info) | |
# About: Process LAADSWeb previews list to download all selected images | |
# Created: 27.06.2014 | |
# Usage example: python laadsweb-downloader.py | |
# --------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ID,NAME | |
1241,Uručča 1 | |
1242,Uručča 2 | |
1243,Uručča 3 | |
1244,Uručča 4 | |
1231,Barysaŭski trakt 1 | |
1232,Barysaŭski trakt 2 | |
1233,Barysaŭski trakt 3 | |
1234,Barysaŭski trakt 4 | |
1221,Uschod 1 |
OlderNewer