Skip to content

social-nlp-lab/reddit-network

Repository files navigation

recovery-network

supporting code for works in understanding motivations behind recovery discussion on reddit

Main scripts:

  1. get_data.ipynb : this notebook gets the active posters from each of the 12 subreddits chosen - dates : june 20218 - june 2022. from thse users, a random sample of 20k are selected for further analysis
  2. py/get_user_subreddits.py: this script runs the PRAW api to get the list of subreddits each user has posted in with multi-threading.
  3. make-edgelist.ipynb: each of the JSON files created in (2) are used to create the edge list for network analysis
  4. network_analysis.ipynb : edge lilst from (3) used to calculate various measure of degree centrality
  5. topic_model.ipynb: topic modeling on the description of the subreddits per community per network

About

supporting code for works in understanding motivations behind recovery discussion on reddit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published