#!/usr/bin/env ruby require "httparty" require "nokogiri" require "open-uri" feed = Nokogiri::XML( URI.open("https://davideisinger.com/index.xml") ) post = feed.search("rss channel item").first title = post.search("title").text url = post.search("link").text body = %(

#{title}

By David Eisinger · View original post

#{post.search("description").text} ) .gsub("{", "{") .gsub("}", "}") .gsub(/width="(\d+)"/) do %(width="#{$1.to_i/2}") end .gsub(/height="(\d+)"/) do %(height="#{$1.to_i/2}") end .gsub(/