Skip to content
This repository has been archived by the owner on Jul 3, 2020. It is now read-only.

Latest commit

 

History

History
38 lines (24 loc) · 1.05 KB

README.md

File metadata and controls

38 lines (24 loc) · 1.05 KB

Description

A script for exporting Campfire room messages to CSV.

It does a very small bit of monkey-patching of Tinder to make it work for rooms which have been "removed", which was my original use case.

Dependencies

  • Ruby (tested with v2.0.0p195 & v2.2.1p85)
  • Bundler
  • Tinder (in Gemfile)
  • Dotenv (in Gemfile)

Installation

  • Use git to clone the repository or download it as a zip file.
  • Install the bundle with bundle install.

Execution

  • Set the following environment variables (in .env file or otherwise):

    • CAMPFIRE_SUBDOMAIN
    • CAMPFIRE_API_TOKEN
    • CAMPFIRE_ROOM_ID
    • CAMPFIRE_ROOM_NAME
  • Specify start date as first command line argument.

  • Redirect stdout to a file as desired.

    $ ruby export.rb 2013-01-27 >my-campfire-room-messages.csv

Credits

Campfire Export was written by James Mead and the other members of Go Free Range.

License

Campfire Export is released under the MIT License.