A visualization of people a user follows on Twitter

Overview

Twitter-Map

This software allows the user to create maps of Twitter accounts.

Installation

git clone [email protected]:OGreenwood672/Twitter-Map.git

cd Twitter-Map

npm install

pip install python-decouple requests

To create new map:

IMPORTANT:

To create a map you will need a unique Twitter API token

you can get a Twitter API token here: https://twitter.com/login?redirect_after_login=https%3A%2F%2Fdeveloper.twitter.com%2Fapp%2Fnew

Once you have a Twitter API token, place a '.env' file in the main folder and add:

TWITTER_BEARER_TOKEN=<TOKEN>

TWITTER-ID:

To find the user's Twitter id, enter their handle at this website: https://tweeterid.com/

TIMING:

The Twitter API, sadly limits the number of requests. This means that loading an account can take a long time. The API allows 15 requests every 15 minutes. For a good idea of timeing:

number_of_people_the_user_follows + 1 < minutes_left < number_of_people_the_user_follows * 3 + 1

The error margin all depends on how many people the people the user follows follows. (No, it's not a typo)

python3 ./Scrape_Data/main.py --name <name_of_map> --twitter-id <twitter_id> [optional --collect-only-verified <bool> --remove-non-mutual <bool>]

To display map:

npm run show <map_name> [optional <mode: ("3D" | "2D")>]

Example Maps:

Entire Twitter Map

This example map has used the twitter verified account to get all the accounts which are verified and over 2,000,000 followers. This allows you to see Twitter's major communities and see how they all interconnect.

To run the example your self, use the command:

npm run show Twitter

or have a look at this already served version:

https://ogreenwood672.github.io/algorithms/#/twitter/verified/2d

communities_twitter

Elon Musk's Account

This is a much smaller account but still is able to show you the communities that Elon Musk follows

To run the example your self, use the command:

npm run show ElonMusk

or have a look at this already served version:

https://ogreenwood672.github.io/algorithms/#/twitter/elonMusk/2d

image

Contributions

If you would like to suggest any improvements, fix any issues or clean the code, you can:

  • Post an issue in the issues tab in github
  • Message me on Discord at: Greenwood#6835
You might also like...
Twitter-bot - A Simple Twitter bot with python

twitterbot To use this bot, You will require API Key and Access Key. Signup at h

Twitter-redesign - Twitter Redesign With Django

Twitter Redesign A project that tests Django and React knowledge through a twitt

The algorithm performs a simple user registration (Name, CPF, E-mail and Telephone) in an Amazon RDS database and also performs the storage, training and facial recognition of the user's face to identify the users already registered in the system in a next time the user is seen. Python script using Twitter API to change user banner to see 100DaysOfCode process.
Python script using Twitter API to change user banner to see 100DaysOfCode process.

100DaysOfCode - Automatic Banners 👩‍💻 Adds a number to your twitter banner indicating the number of days you have in the #100DaysOfCode challenge Se

IMDbPY is a Python package useful to retrieve and manage the data of the IMDb movie database about movies, people, characters and companies

IMDbPY is a Python package for retrieving and managing the data of the IMDb movie database about movies, people and companies. Revamp notice Starting

Find people to play tennis with.
Find people to play tennis with.

40Love 40Love is a full-stack web application that helps tennis players find hits at public tennis courts. Players can select public courts on the map

As Slack no longer provides an API to invite people, this is a Selenium Python script to do so

As Slack no longer provides an API to invite people, this is a Selenium Python script to do so

a simple python script that monitors the binance hotwallet and refunds the withdrawal fee to encourage people to withdraw their Nano and help decentralisation

Nano_Binance_Refund_Bot a simple python script that monitors the binance hotwallet and refunds the withdrawal fee to encourage people to withdraw thei

A python script for hitting the kik API to enumerate people based on a username/userlist

kick3d Recon script for enumerating users off of the Kik API. This script has the ability to check single usernames or run through a userlist of usern

Comments
  • Complex Readme statement

    Complex Readme statement

    "The error margin all depends on how many people the people the user follows follows. (No, it's not a typo)" This sentence seems too confusing.

    documentation 
    opened by OGreenwood672 0
An script where it logs in your instagram account and follows people and likes their posts

InstaFollower An script where it logs in your instagram account and follows people and likes their posts (uses the tags to fetch people) Requirements:

Bless 3 Nov 29, 2022
LEC_Ditto is a bot that tracks the follows and unfollows of Twitter accounts

✨ LEC_Ditto ✨ I'm Ditto, and I'm a bot ?? . Getting Started | Installation | Usage Getting Started LEC_Ditto is a bot that tracks the follows and unfo

null 2 Mar 30, 2022
This code is for a bot which will find a Twitter user's most tweeted word and tweet that word, tagging said user

max_tweeted_word This code is for a bot which will find a Twitter user's most tweeted word and tweet that word, tagging said user The program uses twe

Yasho Bapat 1 Nov 29, 2021
Automatically mass follows tons of NameMC profiles.

Automatically mass follows tons of NameMC profiles. (Creates REAL traffic to your profile)

Jam 3 Jun 29, 2022
Ethereum transactions and wallet information for people you follow on Twitter.

ethFollowing Ethereum transactions and wallet information for people you follow on Twitter. Set up Setup python environment (requires python 3.8): vir

Brian Donohue 2 Dec 28, 2021
Actively maintained, pure Python wrapper for the Twitter API. Supports both normal and streaming Twitter APIs.

Twython Twython is a Python library providing an easy way to access Twitter data. Supports Python 3. It's been battle tested by companies, educational

Ryan McGrath 1.9k Jan 2, 2023
Quickly and efficiently delete your entire tweet history with the help of your Twitter archive without worrying about the pointless 3200 tweet limit imposed by Twitter.

Twitter Nuke Quickly and efficiently delete your entire tweet history with the help of your Twitter archive without worrying about the puny and pointl

Mayur Bhoi 73 Dec 12, 2022
Twitter bot that finds new friends in Twitter.

PythonTwitterBot Twitter Bot Thats Find New Friends pip install textblob pip install tweepy pip install googletrans check requirements.txt file Env

IbukiYoshida 4 Aug 11, 2021
A twitter multi-tool for OSINT on twitter accounts.

>TwitterCheckr A twitter multi-tool for OSINT on twitter accounts. Infomation TwitterCheckr also known as TCheckr is multi-tool for OSINT on twitter a

IRIS 16 Dec 23, 2022
twitter bot tha uses tweepy library class to connect to TWITTER API

TWITTER-BOT-tweepy- twitter bot that uses tweepy library class to connect to TWITTER API replies to mentions automatically and follows the tweet.autho

Muziwandile Nkomo 2 Jan 8, 2022