PolitePol is an open-source and privacy-focused Twitter bot that helps you automatically delete your old tweets. In this tutorial, we will explain how to install PolitePol on NixOS Latest, a Linux distribution.
Before we get started, you need to have the following prerequisites:
First, you need to clone the PolitePol repository from GitHub using the following command:
$ git clone https://github.com/taroved/pol.git
This will clone the repository into your current working directory.
Next, you need to configure your Twitter API keys in the PolitePol configuration file. To do this, navigate to the config
directory and open the settings.toml
file:
$ cd pol/config
$ nano settings.toml
In the settings.toml
file, paste your Twitter API keys in the following format:
consumer_key = "<your_consumer_key>"
consumer_secret = "<your_consumer_secret>"
access_token_key = "<your_access_token_key>"
access_token_secret = "<your_access_token_secret>"
Save and close the file.
PolitePol requires several dependencies to be installed before it can be run successfully. Fortunately, NixOS makes it easy to install all of these dependencies with a single command.
To install the required dependencies, run the following command from within the pol
directory:
$ nix-shell
This will start a new shell session with all of the dependencies installed.
Now that you have cloned the PolitePol repository, configured your Twitter API keys, and installed the required dependencies, you're ready to start the bot.
To start the bot, navigate to the src
directory and run the following command:
$ python3 politepol.py
This will start the bot, and it will automatically delete your old tweets based on the settings in the settings.toml
file.
In this tutorial, we have explained how to install PolitePol on NixOS Latest. With PolitePol installed, you can automate the process of deleting your old tweets and maintain your privacy on social media.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!