ajdavis / proporti.onl

Compare number of women, men, and nonbinary people among my friends and followers.
https://www.proporti.onl
Apache License 2.0
238 stars 27 forks source link

Allow for analysis of a single user at a time #8

Closed simensen closed 7 years ago

simensen commented 7 years ago

Rather than analyze the followers and following for a specific user, analyze the user themselves to see the gender of that specific user as determined by the algorithm.

This is useful in helping to make the algorithm better and to give people the ability to see how they are being gendered by this project.


My Python is a bit rusty so happy to get constructive feedback on how to do this differently. The way I tested this was to update analyze.py so that it could be run from the command-line.

Original usage still works to show the followers and following for a Twitter user:

python2.7 analyze.py beausimensen

With this PR, one can use the --self argument to instead get the gender of the specified Twitter user:

python2.7 analyze.py --self beausimensen

Similar functionality could be added to the web app at some point but not sure I'm the right person for that job.

ajdavis commented 7 years ago

Merged in https://github.com/ajdavis/twitter-gender-distribution/commit/a506d00779a8762bd658813eddcbfad5d284ebec thanks!

simensen commented 7 years ago

@ajdavis Sure thing! Glad I could help. :)