Skip to content

Instantly share code, notes, and snippets.

@abitrolly
Last active December 26, 2018 04:01
Show Gist options
  • Save abitrolly/2e489ccbc095744434952c7b37ad0479 to your computer and use it in GitHub Desktop.
Save abitrolly/2e489ccbc095744434952c7b37ad0479 to your computer and use it in GitHub Desktop.
Grimoire - Time Spell

It is about to be 15:00 and I am on a quest to measure the value of spending time to contribute to StackOverflow.

Front page of https://chaoss.github.io/grimoirelab/ leads to wordy tutorial https://chaoss.github.io/grimoirelab-tutorial/.

I need to get my activity from StackOverflow. Ideally I need to get my page views and navigation activities, but that's contributing, so let's write a comment, remove that and count the event.

001 Setup Feeder and Configure Repository

Feeder is the thing that gets data and feeds it somewhere. Grimoire Repository is a data source, such as GitHub or StackExchange.

There is no command line tool or GUI. I need to write some Python code. Grimoire/Perceval turns any Grimoire Repository into event queue with recorded position.

(going through broken link and name inconsistency, 1 issue filled, 2 PR created) 15:45

002 Getting events with CLI tool

06:55 here. perceval can be used as a command line tool and as explained in https://chaoss.github.io/grimoirelab-tutorial/perceval/git.html#using-perceval-as-a-program

Running perceval with podman.

podman run grimoirelab/perceval stackexchange --site stackoverflow > dump.json

However, for StackExchange it dumps a feed of all questions which means I have to download the whole StackExchange just to read my data.

Opened an issue about that chaoss/grimoirelab-perceval#467

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment