szabgab / codeandtalk.com

Indexing conferences, videos, podcasts, people
https://codeandtalk.com
Apache License 2.0
80 stars 136 forks source link

Convert events to JSON files #248

Open szabgab opened 7 years ago

szabgab commented 7 years ago

As the first step for https://github.com/afilina/dev-community-data/issues/90

Convert the data/events/* files to JSON format that matches the fields used in the JSON file of https://github.com/afilina/dev-community-data/

At first create one JSON file per event.

Then evaluate and see if the one JSON file per series might be better or not.

name:                  => "name"             DONE
url:                   => "website"          DONE
start_date:            => "event_start"      DONE
end_date:              => "event_end"        DONE
cfp_date:              =>  "cfp_end"         DONE
city:                |
state:               | => "location" : { "city": "", "state": "", "country": "" }    DONE
country:             |
topics:                =>   "tags" : ["tag", "tag"]   (but in strict lower-case)     DONE
languages:             => "languages" : ["English", "Portuguese"]                    DONE
code_of_conduct:       => "code_of_conduct"        DONE
twitter:               => "twitter" prefix with @
hashtag:               => "hashtag" prefix with #
facebook:              => "facebook"               DONE
accessibility:         => "accessibility"          DONE
diversitytickets:      => 
diversitytickets_url:  =>
diversitytickets_text: =>
youtube:               => "youtube"                DONE
comment:               => "comment"                DONE
# text                 => "private_comments"       DONE
rollandf commented 7 years ago

How can I help with this issue ?

szabgab commented 7 years ago

Thanks for the offer, but I think I'll handle it myself in the next few days. Just keep adding more events :)

ShaneCurcuru commented 7 years ago

I agree having event sets as a concept in the data is important to some users. My suggestion is to keep this, but make sure that it's as simple as possible for event submitters to keep their "most current" data updated, without having to understand the data structures.

Half the battle is making it super-simple for FOSS community members from far-reaching events to self-report and also self-update and maintain the data format.

Thanks! This all sounds great.

afilina commented 7 years ago

@szabgab Do you mind if I write a script to automate the conversion? I'll then commit the resulting JSON files for each event series. Then it will be really easy to make the merge of the repos. I'm already familiar with the destination format and can adapt it based on additional variables you might have. I can do that tonight.

szabgab commented 7 years ago

@afilina be my guest 😃 . Will you also update the code that collects the data and generates the super-json file I use to serve the codeandtalk.com site?

szabgab commented 7 years ago

json conversion is done to per event files except for the twitter and hashtag fields that I raised here: https://github.com/afilina/dev-community-data/issues/90

I'll convert them to per series json files later.