-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample.py
More file actions
19 lines (16 loc) · 799 Bytes
/
Copy pathexample.py
File metadata and controls
19 lines (16 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import mosopen
import time
regions = ['http://mosopen.ru/region/tverskoj',
'http://mosopen.ru/region/meshchanskij',
'http://mosopen.ru/region/marina_roshcha']
neighbour_regions = ['http://mosopen.ru/region/arbat',
'http://mosopen.ru/region/presnenskij',
'http://mosopen.ru/region/krasnoselskij',
'http://mosopen.ru/region/basmannyj',
'http://mosopen.ru/region/savelovskij',
'http://mosopen.ru/region/alekseevskij',
'http://mosopen.ru/region/begovoj',
'http://mosopen.ru/region/butyrskij]']
for region in regions:
print(list(filter(lambda s: s.split(' ')[-1] == 'улица', mosopen.get_streets(region))))
time.sleep(1)