How to Identify the Gender of your Twitter Followers
Do you ever wonder what is the demographics of people who follow you on Twitter. How many of your Twitter friends are men? Or women? Or random colored eggs, people who are either too lazy to change their default avatar or maybe they are Twitter bots.
The Graph Search of Facebook can provide deep insights into the demographics of people who are connected with you on the social network. For instance, you can write a natural language query like ”My friends who are older than 30” or ”My female friends who live in Delhi” and the answer will be available instantly. Such granular data is however not available for Twitter users.
Who Follows You? Males, Females or Eggs
How do you programmatically determine the gender of a person on Twitter?
The Twitter API doesn’t provide the gender information but there’s a workaround. You can take the profile picture of a Twitter user, feed it into Siftr’s Vision API and it will detect the gender of the most prominent face in the photograph. You can go a step further and use Microsoft’s Face API and it will even provide the approximate age of the subject in the photo.
Detecting Gender of Twitter users with Image Recognition
Analyze your Twitter Followers
Meet Twitter Analyzer, a web app that analyzes your Twitter network (friends or followers) and logs the details of all user inside a Google Spreadsheet (see screenshot). You get to know their gender, how often they tweet, where are they located, when did they last join Twitter and more.
Getting started is easy. Go to labnol.org/analyzer and sign-in with your Google Account. It requires all these permissions because the underlying Google Script saves everything inside a Google Spreadsheet that will be in your Google Drive. Once the Twitter followers have been analyzed, you’ll get an email notification.
After you’ve granted the necessary permissions, click “Authorize Twitter” to allow the sheet to access your Twitter account. It will never post any tweet to your profile. Next click the scan button and close the page. You’ll get an email once the analysis is complete and this time will vary based on the number of followers you have.
Go to labnol.org/analyzer to scan your Twitter followers
Identifying Humans vs Twitter Bots
Camisani Calzolari wrote a set of rules (PDF) that can help detect real users from bots, inactive accounts and fake Twitter users. Some of the rules are:
- The account has written at least 50 tweets
- the account has at least 30 followers
- the profile contains a URL
- the profile contains an image
- the profile contains a biography
- it has been inserted into other Twitter lists
The Google Spreadsheet that is generated by the Twitter Analyzer app includes most of this information as well. Thus, apart from gender analysis, the Analyzer app may help you figure out how many fake bots and inactive profiles follow you on Twitter.
Amit Agarwal
Google Developer Expert, Google Cloud Champion
Amit Agarwal is a Google Developer Expert in Google Workspace and Google Apps Script. He holds an engineering degree in Computer Science (I.I.T.) and is the first professional blogger in India.
Amit has developed several popular Google add-ons including Mail Merge for Gmail and Document Studio. Read more on Lifehacker and YourStory