mirror of
https://github.com/LaQuay/TDTChannels.git
synced 2025-06-04 11:28:25 +02:00
Update script
This commit is contained in:
parent
7696de898d
commit
6fb7e7bc78
4 changed files with 4 additions and 20 deletions
script
|
@ -65,7 +65,7 @@ def get_channels_from_part(text):
|
|||
return channel_list
|
||||
|
||||
|
||||
page = requests.get('https://raw.githubusercontent.com/LaQuay/TDTChannels/master/README.md',
|
||||
page = requests.get('https://raw.githubusercontent.com/LaQuay/TDTChannels/master/TELEVISION.md',
|
||||
headers={'Cache-Control': 'no-cache'})
|
||||
content = str(page.text)
|
||||
|
||||
|
@ -149,7 +149,7 @@ international.add_ambit(Ambito("Internacional", get_channels_from_part(canales_i
|
|||
|
||||
# Save data to JSON file
|
||||
json_file = open('./public/output/channels.json', "w+")
|
||||
# TODO Anadir copyright
|
||||
# TODO Add license
|
||||
json_file.write("[")
|
||||
json_file.write(json.dumps(spain.to_json()))
|
||||
json_file.write(", ")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue