Example Scala code showing processing of JSON repo data from Github
- Take a single argument specifying the search term, and error out if one is not provided
- Using the Github API as a starting point, find all the repositories that have a description containing the given search term as a full phrase (not just the words individually). To avoid hitting the API rate limit, you should only load up to 1000 results.
- Filter out any repos with an empty "language" (
null
or empty String) - Group the remaining list of repos by "language", and count the number of occurrences for each
- Sort the languages by occurrence descending
- Output a line for each result, in the
{language}: {count}
format - After the results, on a separate line, output the total number of search results in the format:
=> {total_count} total result(s) found
Using play-ws-standalone and play-ws-standalone-json
sbt "run xslt"
or some such