<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ailie Fraser on Medium]]></title>
        <description><![CDATA[Stories by Ailie Fraser on Medium]]></description>
        <link>https://medium.com/@cafraser?source=rss-c7d85d9f5818------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*vRsLXGvT71-j3MEI.</url>
            <title>Stories by Ailie Fraser on Medium</title>
            <link>https://medium.com/@cafraser?source=rss-c7d85d9f5818------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 06:26:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cafraser/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Reflecting on UIST 2020]]></title>
            <link>https://medium.com/acm-uist/reflecting-on-uist-2020-15bc41212e0c?source=rss-c7d85d9f5818------2</link>
            <guid isPermaLink="false">https://medium.com/p/15bc41212e0c</guid>
            <category><![CDATA[announcements]]></category>
            <dc:creator><![CDATA[Ailie Fraser]]></dc:creator>
            <pubDate>Wed, 24 Mar 2021 18:45:24 GMT</pubDate>
            <atom:updated>2021-03-24T18:45:24.353Z</atom:updated>
            <content:encoded><![CDATA[<p>UIST 2020 took place virtually in 2020, with the main program on Oct 21–23. Originally scheduled to take place in Minneapolis, USA, collocated with our sister conference <a href="https://cscw.acm.org/2020/">ACM CSCW</a>, the switch to virtual meant that we needed a complete overhaul of how we planned and ran the conference. We would like to share the decisions we made and the underlying considerations behind our decision making with the hope that this may be useful to other conference planners as they plan for virtual or hybrid conferences in the near and long-term future. Since this was the first time UIST was virtual, we also created extensive documentation detailing key components — e.g technical infrastructure, how-to-guides for participants and so on.</p><p><a href="https://bit.ly/uist2020-design-journey-full"><strong>Click here to read our Design Journey Overview</strong></a>, which details our experience of adapting to an online-only conference. We share technical details, social interaction and other adaptations for our 700-person virtual-only conference!</p><p>This document was written and assembled by the UIST 2020 General Chairs Shamsi Iqbal and Karon MacLean, with contributions from Michelle Annette, Jeeeun Kim, Jingyi Li, Doga Dogan, Nadya Peak, David Lindlbauer, Thomas Langerak, Karan Ahuja, Elena Glassman and Ailie Fraser.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15bc41212e0c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/acm-uist/reflecting-on-uist-2020-15bc41212e0c">Reflecting on UIST 2020</a> was originally published in <a href="https://medium.com/acm-uist">ACM UIST</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Join us now on Discord for year-round discussion!]]></title>
            <link>https://medium.com/acm-uist/join-us-now-on-discord-for-year-round-discussion-49a6548f989f?source=rss-c7d85d9f5818------2</link>
            <guid isPermaLink="false">https://medium.com/p/49a6548f989f</guid>
            <category><![CDATA[announcements]]></category>
            <category><![CDATA[uist2021]]></category>
            <dc:creator><![CDATA[Ailie Fraser]]></dc:creator>
            <pubDate>Fri, 22 Jan 2021 22:21:52 GMT</pubDate>
            <atom:updated>2021-01-22T22:21:52.197Z</atom:updated>
            <content:encoded><![CDATA[<p>Last year at UIST 2020, <a href="https://medium.com/acm-uist/how-to-discord-at-uist-7d6744b989b0">we used Discord for the first time</a> to enable both synchronous and asynchronous discussion among conference attendees. Discord’s seamless blend of voice/video channels and Slack-like text channels allowed attendees to easily connect with each other, discuss papers, watch live technology demos, and grab virtual coffee. When the conference ended, we were left wondering… why not keep this going year-round?</p><p>There are currently no opportunities for engagement with the UIST community outside of the yearly conference cycles. But now that UIST 2020 has passed and UIST 2021 will also be virtual, we have a unique opportunity to leverage our existing virtual infrastructure and foster community engagement on a more regular basis. To this end, we are excited to announce that <strong>we are relaunching the Discord server from UIST 2020 as a year-round community-based platform for discussion and social connection</strong>!</p><figure><img alt="A screenshot of the #start-here channel on the UIST Discord server, with a brief welcome message." src="https://cdn-images-1.medium.com/max/1024/1*zJMAcjTFi55OrnHjWIerjQ.png" /></figure><p>Our goals for the Discord server are to:</p><ul><li>Increase the opportunities for, and foster, a diverse and inclusive community in between UIST conferences;</li><li>Provide a platform for researchers, in particular early career, to a) build international networks, b) maintain and reinforce existing networks, and c) seek and provide help/guidance/training on research topics</li><li>Create a social hub for like-minded researchers</li><li>Encourage people to become (more) active in UIST and SIGCHI communities</li></ul><p>In order to create and maintain an active community that engages in proactive discussions, we aim to support a number of events, such as:</p><ul><li>Reading group</li><li>Q&amp;A sessions/workshops with experienced researchers/practitioners</li><li>Coffee gatherings</li><li>Recurrent remote co-working sessions</li><li>Specific topic meetups (e.g. haptics, VR)</li><li>Social activities (e.g., movies, games)</li></ul><h4>The UIST Discord server is <strong>open now to anyone who wants to join</strong>!</h4><p><a href="https://discord.gg/k4pMq4mdqC">Click here</a> to sign up (or log back in if you attended UIST 2020). To get started, you’ll need to accept the rules in the #start-here channel, and then you’ll be able to choose which channels you’d like to see from a variety of categories. If you are already a member of the Discord server from UIST 2020, you’ll still need to go to #start-here to get access to the new channels. The contents of channels from UIST 2020 will only be available to the original attendees.</p><p>Got questions? Feedback? Ideas for things you’d like to see on Discord or at UIST 2021? Our UIST 2021 General Chair Jeff Nichols will be hosting two AMA (Ask Me Anything) sessions on Discord next week, so tune in to ask questions during whichever session is most convenient for you! We have scheduled the two sessions at the following times in an effort to accommodate as many time zones as possible:</p><p><strong>AMA #1:<br></strong>8:00–9:00 am, Tue, Jan 26 2021 (PST, Pacific Standard Time (US))<br>5:00–6:00 pm, Tue, Jan 26 2021 (CET, Central European Time)<br>1:00–2:00 am, Wed, Jan 27 2021 (JST, Japan Standard Time)</p><p><strong>AMA #2:<br></strong>10:00–11:00 pm, Tue, Jan 26 2021 (PST, Pacific Standard Time (US))<br>7:00–8:00 am, Wed, Jan 27 2021 (CET, Central European Time)<br>3:00–4:00 pm, Wed, Jan 27 2021 (JST, Japan Standard Time)</p><p>See you on Discord!</p><p><em>Written in collaboration with Chris Clarke (UIST 2021 Sustainability Co-Chair), Pascal Fortin (UIST 2021 Registration Co-Chair), and Thomas Langerak (UIST 2020 Virtual Experience &amp; Operations Co-Chair)</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49a6548f989f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/acm-uist/join-us-now-on-discord-for-year-round-discussion-49a6548f989f">Join us now on Discord for year-round discussion!</a> was originally published in <a href="https://medium.com/acm-uist">ACM UIST</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to download public YouTube captions in XML]]></title>
            <link>https://medium.com/@cafraser/how-to-download-public-youtube-captions-in-xml-b4041a0f9352?source=rss-c7d85d9f5818------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4041a0f9352</guid>
            <category><![CDATA[video-captioning]]></category>
            <category><![CDATA[youtube]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[captions]]></category>
            <dc:creator><![CDATA[Ailie Fraser]]></dc:creator>
            <pubDate>Tue, 07 May 2019 23:07:23 GMT</pubDate>
            <atom:updated>2019-11-14T00:56:09.051Z</atom:updated>
            <content:encoded><![CDATA[<p>For my recent <a href="https://cseweb.ucsd.edu/~cafraser/index.html#replay">research project</a>, I used the YouTube Data API to build a tool (for MacOS using Swift) that searches for YouTube videos. To make video search a little easier, I wanted to be able to locate moments within videos that are relevant to the user’s search query. To do this, we can use video captions, as YouTube automatically generates captions by default for most videos, and these are timestamped to align with the video’s narration. So this meant I’d need to download the captions for each video that comes back as a search result. Good thing the YouTube API has a <a href="https://developers.google.com/youtube/v3/docs/captions">captions method</a>, right? Easy, right?</p><p>…nope. The method’s description doesn’t say this, but once you actually get the required OAuth working for this function, most videos will give back a 403 “forbidden” error. Why? If you scroll all the way down to errors on that <a href="https://developers.google.com/youtube/v3/docs/captions/download#errors">documentation page</a>, you’ll see:</p><blockquote>“The permissions associated with the request are not sufficient to download the caption track. The request might not be properly authorized, or the video order might not have enabled third-party contributions for this caption.”</blockquote><p>What I believe this means is that the captions method is only intended for video owners to download &amp; modify their <em>own</em> captions. Or if they want others to be able to do this, they must choose to enable third-party contributions, which most video owners do not.</p><p>But the captions themselves are still public. On any video that has captions (<a href="https://www.youtube.com/watch?v=JBIyPCSV9_M">example</a>), you can view the entire transcript by clicking the 3 dots in the description followed by “open transcript”. And as <a href="https://medium.com/future-journalism-project/how-to-extract-the-transcript-for-captions-on-youtube-videos-7720a856af">others have shown</a>, you can get the XML transcript directly from this page by using the developer tools to inspect the network activity. But what if you want to download the XML programmatically, without manually visiting each video page?</p><p>As it turns out, there is an undocumented API function that can do this for us: get_video_info. A few others have built libraries that use it, for example in <a href="https://github.com/jdepoix/youtube-transcript-api">python</a> and <a href="https://github.com/algolia/youtube-captions-scraper">javascript</a>. After digging through their code and the function’s response, I was able to get it working in Swift. Here’s how:</p><p>First, use get_video_info to obtain a link to the subtitles in XML. This is the same link you get from the network inspector method above. Do this by making a GET request of the following form:</p><p><em>Edit Nov. 13, 2019: The above line used to say POST request, but the get_video_info method seems to only accept GET requests now. </em>¯\_(ツ)_/¯</p><pre>https://www.youtube.com/get_video_info?video_id=[VIDEO_ID]</pre><p>Now, the result you get back is a super long string in URI parameter-value format with A LOT of information in it, all encoded with percent-encoding to make it that much more readable (…not). Try this to see an example: <a href="https://www.youtube.com/get_video_info?video_id=JBIyPCSV9_M">https://www.youtube.com/get_video_info?video_id=JBIyPCSV9_M</a></p><p>The parameter we care about is captionTracks. If the URI does not contain this parameter, it means the video has no subtitles available. If it does, the value of this parameter will be a list of dictionaries (one for each caption track) that look something like this (once you decode it):</p><pre>{ &quot;baseUrl&quot;: &lt;a URL that starts with <a href="https://www.youtube.com/api/timedtext?caps=asr\u0026v=JBIyPCSV9_M\u0026expire=1557014287\u0026xoaf=1\u0026asr_langs=en%2Cfr%2Cja%2Cko%2Cde%2Cpt%2Cit%2Cnl%2Cru%2Ces\u0026hl=en\u0026xorp=True\u0026key=yttt1\u0026signature=E3F4742E0A58AF47F3C587EFDA5469684E1F3E6E.DC79D68093839AB9AF98B67C4C942A90AEC22C58\u0026sparams=asr_langs%2Ccaps%2Cv%2Cxoaf%2Cxorp%2Cexpire\u0026kind=asr\u0026lang=en">https://www.youtube.com/api/timedtext</a>&gt;,</pre><pre>&quot;name&quot;: &lt;how the subtitle is described on youtube&gt;,</pre><pre>&quot;vssId&quot;: &lt;describes the type and language of captions: English captions are &quot;.en&quot;, auto-generated English captions are &quot;a.en&quot;&gt;,</pre><pre>&quot;languageCode&quot;: &lt;&quot;en&quot; for English&gt;,</pre><pre>&quot;kind&quot;: &lt;&quot;asr&quot; for auto-generated, &quot;standard&quot; for normal&gt;,</pre><pre>&quot;isTranslatable&quot;: &lt;true|false&gt; }</pre><p>You can check the vssId, languageCode, and/or kind parameters to find out the language and type of captions. The link provided by baseUrl will take you straight to the full XML for the captions, which is the same XML you can get using the developer tools in a browser mentioned earlier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dVEjFuRiAcC9_9RB0yyupg.png" /><figcaption>Here is an example excerpt from some captions in XML format (from <a href="https://www.youtube.com/watch?v=JBIyPCSV9_M">this video</a>)</figcaption></figure><p>That’s it! A bit tedious as it requires two separate network requests to retrieve any video’s captions (one to get_video_info, then one to the actual XML link) but it seems to work for any video that has publicly available captions.</p><p>And in case you were curious, here’s how this all looks in Swift, based largely on <a href="https://github.com/syzer/youtube-captions-scraper">this Javascript implementation</a>:</p><pre>let info_url = URL(string: “https://www.youtube.com/get_video_info&quot;)!</pre><pre>var info_request = URLRequest(url: info_url)<br>info_request.setValue(“application/x-www-form-urlencoded”, forHTTPHeaderField: “Content-Type”)<br>info_request.httpMethod = “POST”<br>let postString = “video_id=\(video_id)”<br>info_request.httpBody = postString.data(using: .utf8)</pre><pre>do {<br>    let task = URLSession.shared.dataTask(with: info_request) { (data, response, error) in<br>        <br>        // check for errors<br>        guard let info_data = data, error == nil else {<br>            print(&quot;error! \(error)&quot;)<br>            return<br>        }</pre><pre>        if let httpStatus = response as? HTTPURLResponse, httpStatus.statusCode != 200 {<br>            print(&quot;bad status code: \(response)&quot;)<br>        }</pre><pre>        // if we get here, response is a string in URI parameter format<br>        let info_string = String(data: info_data, encoding: String.Encoding.utf8)<br>        // decode it<br>        let decoded_data = info_string!.removingPercentEncoding!</pre><pre>        if (!decoded_data.contains(&quot;captionTracks&quot;)) {<br>            // no caption tracks for this video.<br>            return<br>        }</pre><pre>        // extract the entire value of captionTracks<br>        let matched = self.matches(for: &quot;(\\{\&quot;captionTracks\&quot;:.*isTranslatable\&quot;:(true|false)\\}\\])&quot;, in: decoded_data)</pre><pre>        if (matched.count == 0) {<br>            // no caption tracks for this video.<br>            return<br>        }</pre><pre>        // JSON string holding caption tracks list<br>        let matched_string = matched[0] + &quot;}&quot;</pre><pre>        let decoder = JSONDecoder()<br>        var caption_tracks:CaptionInfoList<br>        do {<br>            // decode the json string<br>            caption_tracks = try decoder.decode(CaptionInfoList.self, from: matched_string.data(using: .utf8)!)<br>        } catch {<br>            print(&quot;error:&quot;, error)<br>            return<br>        }</pre><pre>        // go thru the list of caption tracks to find the best english one<br>        var found_captions:CaptionInfo? = nil<br>        for caption_info in caption_tracks.captionTracks {<br>            if (caption_info.vssId.contains(&quot;.en&quot;)) { <br>                // for english language<br>                // if we already found a different one but this one is better i.e. not auto<br>                if ((found_captions != nil &amp;&amp; caption_info.vssId == &quot;.en&quot;) ||<br>                // OR we haven&#39;t found any yet<br>                (found_captions == nil)) {<br>                    // save this one<br>                    found_captions = caption_info<br>                }<br>            }<br>        }<br>        if (found_captions != nil) {<br>            // we got it!<br>            var link_to_captions = found_captions!.baseUrl<br>        }<br>    }<br>}</pre><pre>// struct for storing list of caption tracks returned from youtube API get_video_info<br>struct CaptionInfoList: Codable {<br>    var captionTracks: [CaptionInfo]<br>}</pre><pre>// struct for storing each caption track in list returned from youtube API get_video_info<br>struct CaptionInfo: Codable {<br>    var baseUrl: String // link to caption XML<br>    var name: Dictionary&lt;String, String&gt;<br>    var vssId: String // this is the language code we check<br>    var languageCode: String<br>    var kind: String?<br>    var isTranslatable: Bool<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4041a0f9352" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>