PySocialLab is a pure Python project for cleaning, exploring, and recommending in social networks. It uses only the Python standard library and Jupyter notebooks to process JSON data describing users, friendships, and liked pages.
- Clean raw social data (remove duplicates, inactive users/pages)
- Recommend pages based on common user interests
- Recommend people via mutual friend connections
- 100% pure Python — no external dependencies
data_cleaning.ipynb: Load and clean raw data, output cleaned JSONdata_visualization.ipynb: Display users, connections, and pages from loaded datapages_yml.ipynb: Recommend pages a user might like based on similar users' interestspeople_ymk.ipynb: Recommend people ("People You May Know") via mutual friend connections
Prerequisites: Python 3.7+ and Jupyter (jupyterlab or notebook).
python3 -m venv .venv
source .venv/bin/activate
pip install jupyter
jupyter lab- Run
data_cleaning.ipynbto clean raw JSON data and outputcleaned_data2.json. - Run
data_visualization.ipynbto view users, connections, and pages. - Use
pages_yml.ipynbto get page recommendations for a user ID. - Use
people_ymk.ipynbto get friend recommendations for a user ID.
All work is done in pure Python within notebooks.