18 lines
453 B
Python
18 lines
453 B
Python
import requests
|
|
import telebot
|
|
|
|
TOKEN='680737840:AAEaa7Vxl_kZz_LWS1_S-lH6Eda7HXqu6Y4'
|
|
ChatID='322673713'
|
|
tb = telebot.TeleBot(TOKEN)
|
|
|
|
url_zitat = 'https://dbf.finalrewind.org/Frankfurt%20Hbf%20(tief).json?version=3'
|
|
resp_zitat = requests.get(url_zitat)
|
|
data_zitat = resp_zitat.json()
|
|
#print (data_zitat)
|
|
|
|
antwort=''
|
|
telegramm='Wiesbaden - Mainz\n'
|
|
for i in data_zitat['departures']:
|
|
if i['isCancelled'] == 1:
|
|
print('cancelled')
|
|
print(i)
|