Skip to content

These resources were developed in order to perform research into the Wagner Group in Russia. They serve as a means of replicating the data found in the corresponding paper.

Notifications You must be signed in to change notification settings

moonstripe/ctec_wg_research_resources_1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wagner Group Research Repository

Middlebury Logo

This project was conducted by a team of researchers working at the Center on Terrorism, Extremism, and Counter Terrorism at the Middlebury Institute of International Studies at Monterey.

Introduction

These resources were developed in order to perform research into the Wagner Group in Russia. They serve as a means of replicating the data found in the corresponding paper.

Table of Contents

Guide to Included Scripts

All important Python scripts are included in src/.

...
├─ src/
│  ├─ db.py <- storing and pulling from the database
│  ├─ establishing_timeline.py <- plotting Graph 1
│  ├─ groups.py <- storing information in groups table
│  ├─ main.py <- main controller
│  ├─ posts.py <- controller for navigating VK API related to posts and comments
│  ├─ sentiment_analyzer.py <- controller for sentiment analysis model
│  ├─ text_frequency.py <- plotting Graph 2
...

Guide to Included Images

As part of our exploratory analysis of VK communities related to Wagner, we recorded some screenshots, as well as a link to the context.

Usage

In order to replicate the results in the paper, you will need to install all necessary dependencies. These dependencies have been helpfully summarized in requirements.txt. (The following instructions assume you've initialized a PostgreSQL database to store all of the content. Official instructions on using PostgreSQL can be found here.)


  1. Clone the repository by opening a Terminal window and entering:
$ git clone https://github.com/moonstripe/ctec_wg_research_resources_1.git
  1. Change directory into the cloned repository and initialize your virtual environment with the following command:
$ cd ctec_wg_research_resources_1
$ python3 -m venv venv
  1. Activate your new virtual environment by entering:
$ source venv/bin/activate
  1. Install the dependencies from the requirements file:
$ pip install -r requirements.txt
  1. Create and populate a .env file with your VK access token, and database information.
$ touch .env
$ echo "VK_APP_TOKEN={your access token}" > .env
$ echo "DB_HOST={your database host}" >> .env
$ echo "DB_NAME={your database name}" >> .env
$ echo "DB_USER={your database username}" >> .env
$ echo "DB_PASS={your database password}" >> .env
  1. To pull all post from a group, edit the main.py script under the if __name__ == "__main__": guard, replacing the value with the name of the VK group you're interested in. The script will pull a lot of data, and then apply an intensive sentiment analysis model to it. Make sure your computer can handle such operations.

  2. Pull information from the database using SQL commands or psql.

About

These resources were developed in order to perform research into the Wagner Group in Russia. They serve as a means of replicating the data found in the corresponding paper.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages