Skip to content

Latest commit

 

History

History
59 lines (39 loc) · 1.2 KB

README.md

File metadata and controls

59 lines (39 loc) · 1.2 KB

Condor Discussions Indexer

This tool is used to query the discussion posts of the Condor Info repository. It can provide the maintainer's post as well as index the comments and denote which is marked as an answer.

Install

git clone https://github.com/casper-network/condor-discussions-indexer
cd condor-discussions-indexer
npm install

Create a Personal Access Token through GitHub, providing access only to read:discussion.

Create a new .env file:

touch .env

Paste in your new Personal Access Token:

nano .env

Example:

GITHUB_PAT=ghp_sgaSFSjBzf7ltXqWj6Y87ljFRgrOyt0ziIYy

Run

First, create a file usernames.txt in the project root:

touch usernames.txt

and populate it with one user to track per line:

Example:

dylanireland
sczembor
melpadden

The output will only consist of the users listed in the usernames.txt file.

Get a discussion post by providing the discussion number:

npm run get-discussion 19

The script will create a CSV file named discussions_{DISCUSSION_NUMBER}.csv containing each comment as a row of data.