A somewhat jank if working node script to scrape discord and take screenshots.
Tried on 16.X and v17.4.0
npm install
node src/1_launch.js
- This will start up a new instance of Chromium
- Log into Discord and navigate to whatever channel you want to scrape
- Scroll the chat to where you want to start
- In a separate terminal, run
node src/2_run.js
- The script will page down through the chat and take screenshots.
-
Download & install Visual Studio: https://code.visualstudio.com/download
-
Install Powershell
Instructions here: https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-windows?view=powershell-7.1
Install it, accepting defaults
-
Install git: https://desktop.github.com/
-
Install node: https://nodejs.org/en/download/
-
Download this repo from github using Github Desktop
DO NOT use the "open in vscode" option there is a stupid bug where it breaks everything the bug is four years old apparently computers were a mistake
- Do a sanity check:
close and restart vscode type ctrl-` to open the terminal type "node -v" to check if it has found node
- Tell node to install everything it needs to run
npm install
(it'll look for the package.json config file and install what it needs from there)
- Run the scripts as above.