Skip to content

Instantly share code, notes, and snippets.

@upinetree
Created March 26, 2020 00:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save upinetree/79aa16128e971f276cd05c9c04049f4f to your computer and use it in GitHub Desktop.
Save upinetree/79aa16128e971f276cd05c9c04049f4f to your computer and use it in GitHub Desktop.
# gem install qiita
require 'qiita'
items = Qiita::Client.new.list_user_items('username')
items.body.each { |item| File.open("items/#{item['title']}.md", 'w') { |f| f.write(item["body"]) } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment