Skip to content

Instantly share code, notes, and snippets.

@v6ak
Created October 19, 2012 09:38
Show Gist options
  • Select an option

  • Save v6ak/3917179 to your computer and use it in GitHub Desktop.

Select an option

Save v6ak/3917179 to your computer and use it in GitHub Desktop.
Export Twitterových účtů z OPML do twitter.v6ak.com
val TwRegex = """^(http|https)://(api\.twitter\.com|twitter.com)(/1)?/statuses/user_timeline(/|\.rss\?screen_name=)([0-9A-Za-z_]+)(\.rss)?$""".r
Set(XML.loadFile("/tmp/google-reader-subscriptions.xml") \\ "outline" \\ "@xmlUrl" map {_.toString} flatMap {_ match {case TwRegex(_, _, _, _, name, _) => Some(name); case _ => None}} : _*) map {"http://twitter.v6ak.com/"+_} foreach println;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment