This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |