Skip to content

Instantly share code, notes, and snippets.

@itsabhinaya
itsabhinaya / 200wadcsv.rb
Last active February 14, 2019 14:41
uses the 200wordsaday.com API to export posts details into a CSV
# uses the 200wordsaday.com API to export posts details into a CSV
# to install "gem instal <name>"
require 'httparty'
require 'date'
require "csv"
CSV.open("data.csv", "wb") do |csv|
csv << ["uuid", "status", "access_rights","slug","datetime","published_datetime","title","word_count","categories","collections","timezone","link"]
end