16 lines
417 B
Python
Executable File
16 lines
417 B
Python
Executable File
#!/usr/bin/python3
|
|
|
|
|
|
import requests
|
|
from parsel import Selector
|
|
|
|
|
|
#url = 'https://transiscope.org/carte-des-alternatives/#/carte/@46.33,-1.34,6z?cat=all'
|
|
url = 'https://www.kurzy.cz/banky/bankomaty/zatec-okres-louny/'
|
|
r = requests.get(url)
|
|
sel = Selector(r.text)
|
|
all_address = sel.xpath('//script[contains(.,"point_list")]').re_first(r'point_list = \[(.*)\]\];')
|
|
|
|
for item in all_address.split(','):
|
|
print(item)
|