How To Install python3-twitter on Kali Linux

In this tutorial we learn how to install python3-twitter on Kali Linux. python3-twitter is Twitter API wrapper for Python 3

Introduction

In this tutorial we learn how to install python3-twitter on Kali Linux.

What is python3-twitter

python3-twitter is:

This library provides a pure Python 3 interface for the Twitter API.

Twitter provides a service that allows people to connect via the web, IM, and SMS. Twitter exposes a web services API (http://twitter.com/help/api) and this library is intended to make it even easier for Python programmers to use.

There are three methods to install python3-twitter on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install python3-twitter Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install python3-twitter using apt-get by running the following command:

sudo apt-get -y install python3-twitter

Install python3-twitter Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install python3-twitter using apt by running the following command:

sudo apt -y install python3-twitter

Install python3-twitter Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install python3-twitter using aptitude by running the following command:

sudo aptitude -y install python3-twitter

How To Uninstall python3-twitter on Kali Linux

To uninstall only the python3-twitter package we can use the following command:

sudo apt-get remove python3-twitter

Uninstall python3-twitter And Its Dependencies

To uninstall python3-twitter and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove python3-twitter

Remove python3-twitter Configurations and Data

To remove python3-twitter configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge python3-twitter

Remove python3-twitter configuration, data, and all of its dependencies

We can use the following command to remove python3-twitter configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge python3-twitter

Dependencies

python3-twitter have the following dependencies:

References

Summary

In this tutorial we learn how to install python3-twitter package on Kali Linux using different package management tools: apt, apt-get and aptitude.