Commit 183ba6a0 authored by Etienne Nadji's avatar Etienne Nadji

modifié : Makefile

	modifié :         reco.opml
	modifié :         toOpmlNext.py
parent 1254b7e5
.PHONY: all clean opml
.PHONY: all clean OPML README markdown
all: opml README.md Emissions.md
all: OPML README markdown
opml: reco.opml
......@@ -8,11 +8,11 @@ clean:
-rm README.md
-rm Emissions.md
reco.opml:
OPML:
python3 toOpmlNext.py
README.md:
README:
xmlstarlet tr readme.xsl reco.xml > README.md
Emissions.md:
markdown:
xmlstarlet tr markdown.xsl reco.xml > Emissions.md
......@@ -2,11 +2,12 @@
<opml version="2.0">
<head>
<title>Recommandations d'émissions</title>
<dateCreated>20/01/2018</dateCreated>
<dateCreated>08/11/2018</dateCreated>
</head>
<body>
<outline text="" title="La vidéothèque d’Alexandrie" type="rss" xmlUrl="http://videothequealexandrie.fr/feed/"/>
<outline text="" title="La vidéothèque d’Alexandrie" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCsqvprYnU8J8K449VAQZhsQ"/>
<outline text="" title="The VidCommons Project – Documentaries" type="rss" xmlUrl="https://vidcommons.org/feeds/videos.xml?accountId=8"/>
<outline text="" title="Head Bang" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCfsKk7Rd5wEkGMPdZvqvHmA"/>
<outline text="" title="NeoCast" type="rss" xmlUrl="http://www.neocast.fr/feed/"/>
<outline text="" title="NeoCast" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCg7xnXR_lGNxM_uEQFBF5gw"/>
......@@ -38,6 +39,11 @@
<outline text="" title="Doranum BSN" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCiQKWx7D5wPJr4TG2zN7BJA"/>
<outline text="" title="Doranum BSN" type="rss" xmlUrl="http://doranum.fr/feed/"/>
<outline text="" title="Société Française d’Exobiologie" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCAdvOFo8AkWq3tp_UeReZ3w"/>
<outline text="" title="UNIL TV" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?user=UNILTV"/>
<outline text="" title="Centre d’études supérieures de civilisation médiévale" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCboIOSoVy8EdC1x6axdKNTA"/>
<outline text="" title="L’Agora des savoirs" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCl8XXEKOg3r9du5Xb8zFcYQ"/>
<outline text="" title="Tutos Gallo" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCfXay1lNwuZmXrA-icaBUIw"/>
<outline text="" title="L’Agora des savoirs" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCl8XXEKOg3r9du5Xb8zFcYQ"/>
<outline text="" title="Verticales" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCw5KnG41UpAs7HSI5Rpjn5g"/>
<outline text="" title="Le Temps Éditeur" type="rss" xmlUrl="https://letempsediteur.com/feed/"/>
<outline text="" title="Le Temps Éditeur" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCMTcFkJ_Z2gK_2i20WWR3Gw"/>
......@@ -73,6 +79,7 @@
<outline text="" title="Passion Médiévistes" type="rss" xmlUrl="https://passionmedievistes.wordpress.com/feed/"/>
<outline text="" title="L’histoire nous le dira" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCN4TCCaX-gqBNkrUqXdgGRA"/>
<outline text="" title="Sur le champ" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCiWrr_SnP8eK-_9yJWFzbEA"/>
<outline text="" title="Historia Civilis" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCv_vLHiWVBh_FR9vbeuiY-A"/>
<outline text="" title="Le Psylab" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?user=lepsylab"/>
<outline text="" title="Une araignée au plafond" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?user=Khertanis"/>
<outline text="" title="Psynect" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCwWCBw7M0kskNlv0coVP53w"/>
......@@ -86,6 +93,7 @@
<outline text="" title="L’insolente linguiste" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCeEb8pfFV5zWNX2fCiG6UDw"/>
<outline text="" title="NativLang" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?user=NativLang"/>
<outline text="" title="SOCA" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCZhZD-E7eJg0iAzCfRwFrlg"/>
<outline text="" title="Sociologeek" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UC7qZfJt-S0RvP9H-5_FLETw"/>
<outline text="" title="Avides de recherche" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UC4Jrte_YtwWfANKNyzse5iA"/>
<outline text="" title="Avides de recherche" type="rss" xmlUrl="http://sms.hypotheses.orgfeed/"/>
<outline text="" title="La statistique expliquée à mon chat" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCWty1tzwZW_ZNSp5GVGteaA"/>
......@@ -100,6 +108,7 @@
<outline text="" title="DEFAKATOR" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCU0FhLr6fr7U9GOn6OiQHpQ"/>
<outline text="" title="Ératosphère" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?user=systmk"/>
<outline text="" title="Fred Aves" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UC8v0zDOvrG5g5xdf9ovUj0g"/>
<outline text="" title="Esprit Critique" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UC0yPCUmdMZIGtnxSnx5_ifA"/>
<outline text="" title="Computerphile" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?user=Computerphile"/>
<outline text="" title="ChompChomp" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCAcWL60lM0FwdExJwqtAa1A"/>
<outline text="" title="Lanterne Cosmique" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?user=lanternecosmique"/>
......@@ -110,7 +119,6 @@
<outline text="" title="Science4All" type="rss" xmlUrl="http://fr.science4all.org/feed/"/>
<outline text="" title="Science4All" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?user=Science4AllOrg"/>
<outline text="" title="Science4All" type="rss" xmlUrl="http://science4all.org/feed/"/>
<outline text="" title="AstronoGeek" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UC5X4e8ScZI2AFd_vkjSoyoQ"/>
<outline text="" title="Stardust" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCdL3UpiseRlvxXuORJjmqZw"/>
<outline text="" title="Physics Girl" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?user=physicswoman"/>
<outline text="" title="Florence Porcel" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UC9HapjjoLqdDNwKEWQRaiyA"/>
......@@ -126,6 +134,7 @@
<outline text="" title="StarTalk" type="rss" xmlUrl="https://feeds.soundcloud.com/users/soundcloud:users:38128127/sounds.rss"/>
<outline text="" title="Space Time" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UC7_gcs09iThXybpVgjHZ_7g"/>
<outline text="" title="Space Time" type="rss" xmlUrl="http://feeds.feedburner.com/PBSSpaceTime"/>
<outline text="" title="Ideas in Science" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?user=HonnoratLh"/>
<outline text="" title="Tu mourras moins bête" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCKtG_lXZk4pRJkapfK0eprA"/>
<outline text="" title="Tu mourras moins bête" type="rss" xmlUrl="https://tumourrasmoinsbete.blogspot.com/feeds/posts/default"/>
<outline text="" title="Epenser" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?user=epenser1"/>
......@@ -226,6 +235,7 @@
<outline text="" title="Damastès" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCeLaThEwJRMUg_4HSp8KZEQ"/>
<outline text="" title="Touch my level one" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?user=Ashikara"/>
<outline text="" title="Touch my level one" type="rss" xmlUrl="http://www.ashikara.fr/feed"/>
<outline text="" title="Game Developers Conference" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?user=UC0JB7TSe49lg56u6qH8y_MQ"/>
<outline text="" title="Esthèt’geek" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?user=SamaiCedlart"/>
<outline text="" title="L’Aparté" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?user=SamaiCedlart"/>
<outline text="" title="Na’R’t" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCQq9fMRQhXOyOZeageaj6ag"/>
......@@ -244,6 +254,7 @@
<outline text="" title="Attention, ça glyphe !" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCVcg0ify3ghouZVCYJMpDSg"/>
<outline text="" title="L’Océan des cent typos" type="rss" xmlUrl="http://feeds.soundcloud.com/users/soundcloud:users:335518136/sounds.rss"/>
<outline text="" title="Funambulle" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UC2PSS1ny6wjhUIR6M7DaLKg"/>
<outline text="" title="Derrière le Masque !" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCow2gT3meZphlG8D2sa9nig"/>
<outline text="" title="Mandala" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCWhNDgW-Dy8N9YQtJ5hqXIQ"/>
<outline text="" title="Les chroniques du dragon" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCwrSIvGrXBNDosRzLXL5-Fw"/>
<outline text="" title="Les trésors d’Arpheore" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UC1YakKmeYcWwc2duhkBHLfw"/>
......@@ -323,6 +334,8 @@
<outline text="" title="Le Tost'" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCbbsbAqC2uYvyPX56TCBLrw"/>
<outline text="" title="Total Remake" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCiZtAqN-MPqkFg4uJiZbDpw"/>
<outline text="" title="L’archiviste du cinéma" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCntDC5Hp_XYNy-7shfkUtnw"/>
<outline text="" title="Scinéma" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCPF7JOWMDWZmnP_cQfyAezg"/>
<outline text="" title="Scinéma" type="rss" xmlUrl="https://jbscinema.wordpress.com/feed/"/>
<outline text="" title="Pilote" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCvHft8Duo4NaHsxQr2l9TOA"/>
<outline text="" title="Les showrunners" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UClQVvXqYz7hyFNtvechntbA"/>
<outline text="" title="Broadcasting Bino" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCAAF-RcPGghehhrzvHI--sw"/>
......
......@@ -46,6 +46,11 @@ def parse(xml_file):
if "rssUrl" in link.attrib.keys():
rss_url = "{0}{1}".format(text, link.attrib["rssUrl"])
if url_type == "pt":
rss_url = "https://{}/feeds/videos.xml?accountId={}".format(
link.attrib["instance"], link.attrib["id"]
)
if url_type == "yt":
if url_subtype in ["user", "channel"]:
......@@ -71,10 +76,10 @@ def parse(xml_file):
data = {"update":None,"emissions":[]}
xml_parsed = ET.parse(xml_file)
xml_root = xml_parsed.getroot()
for topElement in xml_root:
if topElement.tag == "update":
data["update"] = topElement.text
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment