Read-only mirror of https://github.com/epfl-dlab/manosphere_to_altright — EPFL Data Science & AI Lab (dlab). Issues & pull requests at the source.
  • Jupyter Notebook 97.8%
  • Python 2.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
manoelhortaribeiro 601c979fb3 online appendix
2021-05-12 10:22:50 +02:00
analyses Initial commit. 2021-02-25 14:40:26 +01:00
helper_files Initial commit. 2021-02-25 14:40:26 +01:00
imgs Initial commit. 2021-02-25 14:40:26 +01:00
online_appendix online appendix 2021-05-12 10:22:50 +02:00
.gitignore Initial commit. 2021-02-25 14:40:26 +01:00
README.md Initial commit. 2021-02-25 14:40:26 +01:00
requirements.txt Initial commit. 2021-02-25 14:40:26 +01:00

Code for: "Are Anti-Feminist Communities Gateways to the Far Right? Evidence from Reddit and YouTube"

Brief description of files (in ./analyses):

  • final_graphs.ipynb: create all figures shown in the paper.
  • (overview|migration|similarity)_(reddit|youtube).ipyb: create helper files.
  • helpers.py and helpers_plot.py: auxiliary functions and variables;

Helper Files

We provide files both in .pickle and .json (or .csv, when appropriate). Files relative to Reddit are appended with -reddit.

  • comment-stats: contains number of comments per year per community. Format:
{
"UNIX_DATE": {"COMMUNITY1": "NUM_COMMENTS", ...}
}
  • user_df: csv/pickle contains dataframe with user migrations. The appendix global contains the Manosphere aggregated. Fields explained below:

    1. mean, lower, upper: mean estimated migration along with 95% CIs.
    2. start: date we started tracking in UNIX time.
    3. idx: id of the date of the current observation. 0: 2006-2012, 1: 2013-2015, 2: 2016, 3: 2017, 4:2018.
    4. idxo: id of the date we started tracking. (same as above)
    5. numUsersStart: number of users tracked in the starting date.
    6. numUsersTracked, pUsersTracked: number and percentage of users we managed to track.
    7. numUsersInfected, pUsersInfected: number of users tracked that commented in Alt-right subreddits/channels.
    8. constraint: name of the starting constraint (which community users had to comment in).
  • intersections: pickle file contains one dataframe for each combination of two communities (x and y). Dataframe contains number of users in each community in each year, as well as set operators. Names are self-explanatory

{
("COMMUNITY1", "COMMUNITY2)": pandas.DataFrame(...) 
}