Guest User

Untitled

a guest
May 20th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. require "rubygems"
  2. require "hpricot"
  3.  
  4. doc = Hpricot.XML(`tumblr read num=10`)
  5.  
  6. (doc/"post").each do |p|
  7. puts `tumblr delete post-id=#{p.attributes['id']}`
  8. end
Add Comment
Please, Sign In to add comment