Installing and Using
Requirements
python
3.9 or latergit
A Discord account (preferably a burner)
Installing
1. Clone the repository
Using git
, clone the repository to a desired location.
$ git clone https://github.com/darvester/darvester
$ cd darvester
2. Set up the Python environment
This is a highly encouraged task, although it is optional. With your desired Python version, create a virtual environment within the darvester
folder.
$ python3.9 -m venv .venv
$ source .venv/bin/activate
.\.venv\Scripts\activate.bat
After activating the Python environment, install the requirements.
$ pip install -r requirements.txt
3. Configure Darvester
3.1 Acquiring your Discord user token
Open Discord in your web browser and login
Press Ctrl+Shift+I (⌥⌘I on macOS) to open developer tools
Press Ctrl+Shift+M (⇧⌘M) to toggle device toolbar
Navigate to the Application tab
On the left, expand Local Storage and select https꞉//discord.com
Type
token
into the Filter boxIf the token key does not appear, press Ctrl+R (⌘R) to reload
Copy the value of the token key
3.2 Editing the configuration file for Darvester
Copy cfg.py.template
to cfg.py
.
$ cp cfg.py.template cfg.py
Paste the user token from step 3.1 into the TOKEN
variable. Remember quotes around it!
from logging import CRITICAL, INFO, WARNING
TOKEN = "*discord user token here*"
...
This should be the bare minimum you need to run Darvester, the rest is handled automatically. Feel free to view through the other configuration variables to configure Darvester to your liking.
4. Running Darvester
$ python run.py
That's all folks.
Last updated