Coder Social home page Coder Social logo

stephanietuerk / twitter-gender-distribution Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ajdavis/proporti.onl

0.0 1.0 0.0 1.11 MB

Compare number of women, men, and nonbinary people among my friends and followers.

Home Page: https://www.proporti.onl

License: Apache License 2.0

Python 74.63% HTML 25.37%

twitter-gender-distribution's Introduction

Gender Distribution of Twitter Friends and Followers

Twitter analytics estimates the gender ratio of your followers, but it doesn't tell you about those you follow--your Twitter "friends"--and it doesn't let you analyze other people's friends and followers. Neither does it notice gender-nonbinary users. This tool attempts to fill the gap. It guesses the gender of your friends and followers by looking in their Twitter bios for pronoun announcements like "she/her", or else guessing based on first name.

I've deployed it for public use since June 2016 at proporti.onl.

Read my article about this code: "72% Of The People I Follow On Twitter Are Men."

Tweet me your thoughts.

Install

This script requires Python 3.8, and the packages listed in requirements.txt.

python3 -m pip install -r requirements.txt

Command-line Use

Pass a Twitter username to analyze the user's friends and followers:

python3 analyze.py jessejiryudavis

Test

From the repository root directory:

python3 -m unittest discover -v

Website

Start a Flask server for testing:

CONSUMER_KEY=foo CONSUMER_SECRET=bar COOKIE_SECRET=baz python3 server.py 8000

twitter-gender-distribution's People

Contributors

ajdavis avatar dependabot[bot] avatar jackie-scholl avatar lachlanjc avatar akent avatar simensen avatar colarusso avatar garrettc avatar lucaswerkmeister avatar m0nica avatar kudusch avatar albrgr avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.