Scripts to convert the old reunions wiki data to json
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
reunions
README.md
convert.rb
reunions.json
reunions.txt

README.md

madridrb_reunions

Script to convert the old reunions wiki data (https://madridrb.jottit.com) to json

In console

ruby convert.rb
  1. Reads the content from https://madridrb.jottit.com/?m=edit and gets only the list of reunions, then writes it to a file reunions.txt (if it exists already then skips this step).

  2. Parses each line for some data: {:link, :date, :month, :year, :title, :speakers [{:name, :twitter}], :file } and saves all into reunions.json.

  3. Visit every (internal) link with the ?m=edit option to access the markdown version of the reunion, and store the content in the correspondent mont_year.txt file under ./reunions directory (the file for the link https://madridrb.jottit.com/f%C3%BAtbol.rb_julio_2011 needs to be retrieved manually because the non-ascii character)

To force the download of data from jottit.com overwriting existing files use:

ruby convert.rb -d