Skip to content
Configuration

Configuration

The configuration is a JSON file, given with the -config flag. Without it, every option has its default value. Every option of the file is optional, and an unknown option is an error, to catch typos.

Options

OptionTypeDefaultDescription
resultDirstringResultsFolder the graphs and rankings are written to. A relative path is relative to the current folder. It is created when missing.
wordsToSearchForlist of strings[]Words or phrases to count in the messages. When the list is not empty, a words found graph and ranking are added.
outputTextRankingbooleantrueAlso write the .txt rankings, easier to read than pie charts in large group conversations.
wordsToSearchFor is matched anywhere in the text of each message, regardless of case: lol also counts LOL and lollipop. A message counts once per word of the list it contains.

Example

{
  "resultDir": "/home/me/instagram-results",
  "wordsToSearchFor": ["lol", "see you"],
  "outputTextRanking": true
}