Skip to content

Instantly share code, notes, and snippets.

@atog
Created December 29, 2010 13:58
Show Gist options
  • Save atog/758557 to your computer and use it in GitHub Desktop.
Save atog/758557 to your computer and use it in GitHub Desktop.
Delete tumblr posts
require "rubygems"
require "hpricot"
doc = Hpricot.XML(`tumblr read num=10`)
(doc/"post").each do |p|
puts `tumblr delete post-id=#{p.attributes['id']}`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment