Giter Site home page Giter Site logo

makennagall / womenincongress Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 46.51 MB

This project uses the congress.gov api to look for key terms related to women and other gender minorities in the titles of every bill available on congress.gov.

Home Page: https://d3jvtp-makennagall.shinyapps.io/WomenInCongress/

Python 51.17% R 48.83%
api congress data-feminism plotly shinydashboard women

womenincongress's Introduction

Link to Webpage with Data Displays: https://d3jvtp-makennagall.shinyapps.io/WomenInCongress/

Code Files:
WomenInCongress.py executes a program that distinguishes bills that have key terms contained in their titles.
Inputs: The starting congressional session, the ending congressional session, the file containing API keys (one listed on each line), and the file containing the list of terms to be tested for (one listed on each line). If only one congressional session is being tested, then the program takes only three inputs: the congressional session, the file containing API keys, and the terms file.
Outputs:The program creates two output files for each congressional session it tests. One output file contains information about bills that contain the key terms. The other output file contains the names of all bills that the program tested, the congressional session the bill was introduced in, and whether or not that bill is contained in the other output file.

WomenInCongress.R contains code that creates graphs using the plotly package.

CompileData.py is a program that compiles the data from different files into one file. It is used to create one file containing data from all the congressional sessions from the separate files generated by WomenInCongress.py.

CountingTerms.py is a program that creates files concerning how many bills contain specific terms in the termList document.

requestTest.py takes in one command line input: a valid API key. It prints the html status code that it receives after making a get request. It also prints the data in json format. If the status code is 200, then it will print the data in json format.

Data Files:
termList.txt is a text file containing the terms that were selected in the most recent program execution. All data files that are not in OldData were created using these terms.

compiledNewAllBills.csv and compiledNewAllBills.txt contains the content of all newAllBills files (compiled using CompileData.py)

compiledNewOutputs.csv and compiledNewOutputs.txt contains the content of all newOutputs files (compiled using CompileData.py)

frequency.csv contains data on the frequency that each term appears in the bills

termsCountNew.csv contains allOutputs bills with the term that appears in the bill appended to the end of the csv row. If more than one term appears in the bill, then the bill is listed more than once.

WomenPerSession.csv contains tidied data from https://cawp.rutgers.edu/facts/levels-office/congress/history-women-us-congress

dictionary_comments contains notes on what dictionary keys different request responses contained

Folders:
OldData folder contains data processed with the key terms listed in OldTermList.txt. The Outputs and allBills folders contains the files outputed by WomenInCongress.py for each congressional session. Outputs contains bills that have one of the key terms in their title. AllBills contains the title of all bills for that congressional session. All files are delimited with the | character.
AllBillsNumbers.csv and AllBillsNumbers.xlsx contains how many bills with the key terms and how many total bills were accessed for each congressional session.
AllOutputs.csv and AllOutput.xlsx contains the output for the bills that contained the key terms for all available congressional session in the form: title|congress|sponsors|sponsor's party|latest action| date (maybe separated into m, d, y)| pdfURL

newAllBills and newOutputs contains data from the most recent execution separated by congressional session.

SimplePlotDisplay is a folder that contains a very simple shiny app

womenincongress's People

Contributors

makennagall avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  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.