A small set of scripts for interacting with Bluesky. Just something I put together because my mutuals asked for it.
Feel free to use, modify, or improve it as you like. Do not expect much support or updates, though.
- Clone the repository.
- Use Python 3.10 or newer.
- Create a
.envfile in the root directory of the repository and add your credentials. You should use app passwords instead of your main password. - Create a virtual environment and activate it with
python3 -m venv envandsource env/bin/activate, respectively. - Install the requirements by running
pip install -r requirements.txt. - Run one of the scripts below with
python <script_name>.py [options].
get_profiles.py: Retrieve the followers and follows lists (including their last activity) and save them to a CSV file. Be patient, as this may take a while and throw some errors. Use--verboseto see the progress.mass_unfollow.py: Unfollow all users that are inactive for a certain number of days (default: 60). You must provide a CSV file generated byget_profiles.py.plot_profiles.py: Plot the followers and follows last activity data from the CSV file generated byget_profiles.py.