Evaluate if a twitter account is a bot or not
Project description
# botrnot
Bot or Not detector
## WIP!
`pip3 install botrnot`
## Usage
You can run `botrnot -h` and it shows the following:
```
$ botrnot -h
usage: botrnot [-h] [-u USERNAME] [-n] [-v] [-j]
collects and processes twitter data example: botrnot -u jamescampbell
optional arguments:
-h, --help show this help message and exit
-u USERNAME, --user USERNAME
username to evaluate (default: jamescampbell)
-n, --no-logo dont display logo (default False) (default: False)
-v, --verbose print more things out about search (default: False)
-j, --json save tweets out to json file (default: False)
```
## Example
For user realdonaldtrump:
```
Most recent tweet
+-------------------------------+----------+--------+-------+---------+---+----+
| tweettext | type | rts | favs | replies | t | id |
| | | | | | i | |
| | | | | | m | |
| | | | | | e | |
| | | | | | s | |
| | | | | | t | |
| | | | | | a | |
| | | | | | m | |
| | | | | | p | |
+-------------------------------+----------+--------+-------+---------+---+----+
| We are on track to APPREHEND | original | 12982 | 50612 | 10721 | 1 | 11 |
| more than one million people | | | | | 5 | 03 |
| coming across the Southern Bo | | | | | 5 | 66 |
| rder this year. Great job by | | | | | 1 | 63 |
| Border Patrol (and others) wh | | | | | 9 | 38 |
| o are working in a Broken Sys | | | | | 6 | 36 |
| tem. Can be fixed by Congress | | | | | 9 | 56 |
| so easily and quickly if onl | | | | | 5 | 07 |
| y the Democrats would get on | | | | | 3 | 93 |
| board! | | | | | 4 | 6 |
+-------------------------------+----------+--------+-------+---------+---+----+
Metrics table
+---------------------------+-----------+
| Metric | Amount |
+---------------------------+-----------+
| Total tweets collected: | 420 |
+---------------------------+-----------+
| Total that were retweets: | 93 (22%) |
+---------------------------+-----------+
| Retweets in 327 | 8689464 |
+---------------------------+-----------+
| Replies in 327 | 8247694 |
+---------------------------+-----------+
| Favorites in 327 | 37984435 |
+---------------------------+-----------+
Bio table
+-----------------+------------------------------------------------+
| Full Name | |
| | Donald J. Trump |
+-----------------+------------------------------------------------+
| Followers count | 58.9M |
+-----------------+------------------------------------------------+
| Following count | 45 |
+-----------------+------------------------------------------------+
| User Biography | 45th President of the United States of America |
+-----------------+------------------------------------------------+
| User Location | Washington, DC |
+-----------------+------------------------------------------------+
| User Join Date | Joined March 2009 |
+-----------------+------------------------------------------------+
| User Birth Date | |
+-----------------+------------------------------------------------+
| User ID | 25073877 |
+-----------------+------------------------------------------------+
```
Bot or Not detector
## WIP!
`pip3 install botrnot`
## Usage
You can run `botrnot -h` and it shows the following:
```
$ botrnot -h
usage: botrnot [-h] [-u USERNAME] [-n] [-v] [-j]
collects and processes twitter data example: botrnot -u jamescampbell
optional arguments:
-h, --help show this help message and exit
-u USERNAME, --user USERNAME
username to evaluate (default: jamescampbell)
-n, --no-logo dont display logo (default False) (default: False)
-v, --verbose print more things out about search (default: False)
-j, --json save tweets out to json file (default: False)
```
## Example
For user realdonaldtrump:
```
Most recent tweet
+-------------------------------+----------+--------+-------+---------+---+----+
| tweettext | type | rts | favs | replies | t | id |
| | | | | | i | |
| | | | | | m | |
| | | | | | e | |
| | | | | | s | |
| | | | | | t | |
| | | | | | a | |
| | | | | | m | |
| | | | | | p | |
+-------------------------------+----------+--------+-------+---------+---+----+
| We are on track to APPREHEND | original | 12982 | 50612 | 10721 | 1 | 11 |
| more than one million people | | | | | 5 | 03 |
| coming across the Southern Bo | | | | | 5 | 66 |
| rder this year. Great job by | | | | | 1 | 63 |
| Border Patrol (and others) wh | | | | | 9 | 38 |
| o are working in a Broken Sys | | | | | 6 | 36 |
| tem. Can be fixed by Congress | | | | | 9 | 56 |
| so easily and quickly if onl | | | | | 5 | 07 |
| y the Democrats would get on | | | | | 3 | 93 |
| board! | | | | | 4 | 6 |
+-------------------------------+----------+--------+-------+---------+---+----+
Metrics table
+---------------------------+-----------+
| Metric | Amount |
+---------------------------+-----------+
| Total tweets collected: | 420 |
+---------------------------+-----------+
| Total that were retweets: | 93 (22%) |
+---------------------------+-----------+
| Retweets in 327 | 8689464 |
+---------------------------+-----------+
| Replies in 327 | 8247694 |
+---------------------------+-----------+
| Favorites in 327 | 37984435 |
+---------------------------+-----------+
Bio table
+-----------------+------------------------------------------------+
| Full Name | |
| | Donald J. Trump |
+-----------------+------------------------------------------------+
| Followers count | 58.9M |
+-----------------+------------------------------------------------+
| Following count | 45 |
+-----------------+------------------------------------------------+
| User Biography | 45th President of the United States of America |
+-----------------+------------------------------------------------+
| User Location | Washington, DC |
+-----------------+------------------------------------------------+
| User Join Date | Joined March 2009 |
+-----------------+------------------------------------------------+
| User Birth Date | |
+-----------------+------------------------------------------------+
| User ID | 25073877 |
+-----------------+------------------------------------------------+
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
botrnot-1.2.1.tar.gz
(5.6 kB
view details)
Built Distribution
File details
Details for the file botrnot-1.2.1.tar.gz
.
File metadata
- Download URL: botrnot-1.2.1.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 084ef2aac8a85a330a975a840bf30fcee48b72b39d9b8c82772a1b31c08cc2f1 |
|
MD5 | 17274671f89d570f3b8ab94daed20ffc |
|
BLAKE2b-256 | c4ab9fb72927a6b69d9ff0dfd936de9ba61f34232ff995e84f4e4f13a32c3ed8 |
File details
Details for the file botrnot-1.2.1-py3-none-any.whl
.
File metadata
- Download URL: botrnot-1.2.1-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73ff3ede04a41176e0ecd137b0bb4ef24340bc21c3f25a6f6c33a9b9f43b58f9 |
|
MD5 | d3720701305f3464c8aa0f37a4672512 |
|
BLAKE2b-256 | 6c2d29ce3fe2ca0f416119d622407730af91139fbfbb44995702d8a6070d6002 |