A Python wrapper for Reddit community analytics via the Pushshift API. Includes data collection, ML classification, and research support.
- Reddit data collection via Pushshift API
- ML classifiers (Decision Tree, Random Forest, SVM, Logistic Regression)
- Statistical analysis with sklearn, pandas, numpy
- Network analysis with NetworkX
- HPC support (SLURM scripts for Great Lakes cluster)
pushshift_python.py # Public facade that re-exports the internal library surface
_pushshift_queries.py # Shared query base plus file/web collectors
_pushshift_community.py # Community analytics and feature engineering
_pushshift_modeling.py # sklearn-based model training and evaluation
_pushshift_api.py # Reddit OAuth helper for subreddit refreshes
_pushshift_subreddits.py # Subreddit inventory filtering utilities
Great_Lakes_HPC/ # SLURM batch scripts for HPC
Resources/ # Date partition helpers and supporting data
Examples/ # Usage examples
ICWSM/ # AAAI Web & Social Media research
TADA/ # Text As Data research
tests/ # Public API and HPC smoke coverage
Install the published library in a virtual environment:
python3 -m venv .venv
. .venv/bin/activate
python -m pip install pushshift-pythonFor development from a checkout:
pip install -e .The project currently targets Python 3.10+.
For a non-editable local environment, pip install . also works.
Available on Google Drive.
Run the test suite with:
MPLCONFIGDIR=/tmp/matplotlib pytest -q