How can I make an RSS feed from Youtube search using Google App Script?
Since Youtube shut down its RSS feeds for searches with it's newest version of the API, I've been trying to recreate them using Google App Script. Here's what I have so far (based off of this tutorial for converting a twitter widget to RSS): function getSearches(a){ try{ var rss,title,link; title="Youtube RSS Feed"; link="http://www.youtube.com"; var d=ScriptApp.getService().getUrl()+"?"+a; rss='<?xml version="1.0"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">'; rss+='<channel><title>'+title+'</title>'; rss+='<link>'+link+'</link>'; rss+='<atom:link href="'+d+'" rel="self" type