<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://wiki.erg.be/mw/index.php?action=history&amp;feed=atom&amp;title=Page_web%3ASous-titre_-_Hugo</id>
	<title>Page web:Sous-titre - Hugo - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.erg.be/mw/index.php?action=history&amp;feed=atom&amp;title=Page_web%3ASous-titre_-_Hugo"/>
	<link rel="alternate" type="text/html" href="https://wiki.erg.be/mw/index.php?title=Page_web:Sous-titre_-_Hugo&amp;action=history"/>
	<updated>2026-05-02T09:31:10Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://wiki.erg.be/mw/index.php?title=Page_web:Sous-titre_-_Hugo&amp;diff=10774&amp;oldid=prev</id>
		<title>Ergbot le 18 mai 2019 à 00:11</title>
		<link rel="alternate" type="text/html" href="https://wiki.erg.be/mw/index.php?title=Page_web:Sous-titre_-_Hugo&amp;diff=10774&amp;oldid=prev"/>
		<updated>2019-05-18T00:11:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Version du 18 mai 2019 à 00:11&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&quot; &gt;Ligne 2 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 2 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|URL=http://curlybraces.be/wiki/index.php/Sous-titre_-_Hugo&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|URL=http://curlybraces.be/wiki/index.php/Sous-titre_-_Hugo&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|Title=Sous-titre - Hugo&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|Title=Sous-titre - Hugo&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|Updated=2019-05-16 10:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;17&lt;/del&gt;:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;47&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|Updated=2019-05-16 10:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;43&lt;/ins&gt;:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;48&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|Site=Curlybraces&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|Site=Curlybraces&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|Thumbnail=Autorisation google.png&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|Thumbnail=Autorisation google.png&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ergbot</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.erg.be/mw/index.php?title=Page_web:Sous-titre_-_Hugo&amp;diff=10760&amp;oldid=prev</id>
		<title>Ergbot : Page créée avec « {{Page web |URL=http://curlybraces.be/wiki/index.php/Sous-titre_-_Hugo |Title=Sous-titre - Hugo |Updated=2019-05-16 10:17:47 |Site=Curlybraces |Thumbnail=Autorisation goog... »</title>
		<link rel="alternate" type="text/html" href="https://wiki.erg.be/mw/index.php?title=Page_web:Sous-titre_-_Hugo&amp;diff=10760&amp;oldid=prev"/>
		<updated>2019-05-17T00:13:46Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « {{Page web |URL=http://curlybraces.be/wiki/index.php/Sous-titre_-_Hugo |Title=Sous-titre - Hugo |Updated=2019-05-16 10:17:47 |Site=Curlybraces |Thumbnail=Autorisation goog... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Page web&lt;br /&gt;
|URL=http://curlybraces.be/wiki/index.php/Sous-titre_-_Hugo&lt;br /&gt;
|Title=Sous-titre - Hugo&lt;br /&gt;
|Updated=2019-05-16 10:17:47&lt;br /&gt;
|Site=Curlybraces&lt;br /&gt;
|Thumbnail=Autorisation google.png&lt;br /&gt;
}}&lt;br /&gt;
De {}&lt;br /&gt;
&lt;br /&gt;
Aller à : [http://curlybraces.be/wiki/index.php/Sous-titre_-_Hugo#mw-head navigation], [http://curlybraces.be/wiki/index.php/Sous-titre_-_Hugo#p-search rechercher]&lt;br /&gt;
&lt;br /&gt;
Pour compléter mon projet d'édition en typographie, j'avais besoin de récupérer les sous-titres de plusieurs vidéos youtube sous forme de textes, pour les intégrer à mon édition.&lt;br /&gt;
&lt;br /&gt;
Dans mes premières recherches, j'ai d'abord voulu créer un script qui irait chercher pour moi les sous-titres si je lui indiquait le lien de ma vidéo. J'ai très vite atterris sur le site de google où il est expliqué que tout les accès à ses informations sont protégés. Pour le faire, il faut utiliser une API particulière, et faire des demandes d'autorisations.&lt;br /&gt;
&lt;br /&gt;
[[Fichier:Autorisation google.png|Autorisation google.png|link=http://curlybraces.be/wiki/Fichier:Autorisation_google.png|thumb|none]] ''https://developers.google.com/youtube/v3/docs/captions/download'' ''https://developers.google.com/youtube/registering_an_application''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt; Vu le peu de vidéos dont il me fallait le sous-titre, j'ai cherché un moyen de les récupérer moi même. J'ai trouvé une astuce sur un forum obscur; sur chrome, quand on lance une vidéo, si on active les sous-titres et qu'on inspect la page, dans l'onglet network on peut accéder aux sous-titre. Ils s'ouvrent dans un nouvel onglet, sous forme d'un fichier XML.&lt;br /&gt;
&lt;br /&gt;
[[Fichier:Sous-titre xml.png|Sous-titre xml.png|link=http://curlybraces.be/wiki/Fichier:Youtube_timedtext.png|[[Image:http://curlybraces.be/wiki/images/4/44/Youtube_timedtext.png|Youtube timedtext.png|thumb|none]]] [http://curlybraces.be/wiki/Fichier:Sous-titre_xml.png]]&lt;br /&gt;
&lt;br /&gt;
Sauf que ce XML est très moche, plein de truc chiant pour faire de la mise en page. Grâce a a un peu de javascript, j'ai quand même réussi à le nettoyer, pour en extraire uniquement le texte que je voulais mettre en page. Notamment en utilisant &amp;lt;code&amp;gt;getElementById()&amp;lt;/code&amp;gt; pour extraire le texte des balises xml dans lequel il était.&lt;br /&gt;
&lt;br /&gt;
[[Fichier:Javascript cleaner.png|Javascript cleaner.png|link=http://curlybraces.be/wiki/Fichier:Javascript_cleaner.png|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
J'obtiens ainsi un beau texte que je n'ai plus qu'a copié/coller pour compléter mon édition.&lt;br /&gt;
&lt;br /&gt;
[[Fichier:Texte propre.png|Texte propre.png|link=http://curlybraces.be/wiki/Fichier:Texte_propre.png|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Récupérée de « http://curlybraces.be/wiki/index.php?title=Sous-titre_-_Hugo&amp;amp;oldid=3359 »&lt;/div&gt;</summary>
		<author><name>Ergbot</name></author>
		
	</entry>
</feed>