Read-only mirror of https://github.com/epfl-dlab/deplatforming_dataset — EPFL Data Science & AI Lab (dlab). Issues & pull requests at the source.
  • Jupyter Notebook 90.3%
  • Python 9.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Manoel Horta Ribeiro 4cc743e098
Update README.md
2021-10-14 09:57:11 +02:00
data code refactored and README 2021-06-11 17:11:56 +02:00
results code refactored and README 2021-06-11 17:11:56 +02:00
scripts code refactored and README 2021-06-11 17:11:56 +02:00
algorithm_diagram.png report and diagram 2021-06-11 19:11:29 +02:00
README.md Update README.md 2021-10-14 09:57:11 +02:00
recreate_data.ipynb jupyter notebook modified 2021-06-11 18:15:15 +02:00
report.pdf fixed typo in report 2021-06-11 19:19:54 +02:00
result_analysis.ipynb code refactored and README 2021-06-11 17:11:56 +02:00

Who was deplatformed where?

This project was carried on as a Master's semester project, under the supervision of Manoel Horta Ribeiro and Professor West from the DLAB at EPFL. The goal of this project is to create a precise and large-scale dataset of deplatforming on various social media platforms. This dataset will then allow to conduct an analysis on the effect of deplatforming on the popularity or attention the banned entity receives.

Requirements

The following libraries were used for this project:

library version
matplotlib 3.3.4
numpy 1.19.2
pandas 1.2.3
python 3.8.8
scipy 1.6.2
spacy 3.0.5
statsmodel 0.12.2
swifter 1.0.7

Structure

The project is structured as follows:

    .
    ├── scripts                 	# python scripts for recreating the dataset and analysis
    |	├ scrape_reddit.py      	# To scrape reddit posts using pushshift API. Otherwise, posts (up to 2019) can be found in `dlabdata1/reddit\_rad/{year}-{month}.jsonl.gz`						
	├ read_reddit_files.py  	# To read the gz reddit files from the dlab cluster directly
    	├ extract_pairs.py		# Extract entities/platform pairs from a given pattern and post + filter them
    	├ extract_patterns.py   	# Extracts patterns from a post and an entity/platform pair
    	├ interrupted_time_series.py 	# Create interrupted time series models
    	├ link_google_id.py   		# Queries google knowledge graph to retrieve the google ids of given entities
    ├── data                    	# Contains the intermediary data used 
    	├ raw_patterns.csv      	# The unfiltered list of patterns found extracted at the end of the first iteration
    	├ filtered_patterns.csv 	# Filtred list of 17 patterns used in the second iteration
    	├ platforms_list.txt    	# List of predifined social media platforms 
    ├── results                 	# Results at the end of the first iteration and of the second
    	├ first_pairs_extracted.csv 	# Automatically filtered pairs after initial iteration 
    	├ base_pairs.csv		# first pairs extracted manually filtered
	├ bans.csv			# Final dataset
    ├── recreate_date.ipynb     	# Jupyter notebook using the scripts for recreating step by step the final dataset
    ├── result_analysis.ipynb   	# Jupyter notebook running the Interrupted Time Series analysis
    ├── report.pdf              	# Report detailing various aspects of the project
    ├── algorithm_diagram.png  		# Diagram summarizing the algorithm for creating the dataset
    └── README.md