Coder Social home page Coder Social logo

Comments (5)

JoshData avatar JoshData commented on September 2, 2024 1

We scrape several sources in that repository. I don't remember off hand what all of the URLs are. But you can scan through the scripts at https://github.com/unitedstates/congress-legislators/tree/main/scripts to see.

For this issue, we can also go an easier route to solve it and just hard code the right bioguide ID to use for each of these votes.

from congress.

JoshData avatar JoshData commented on September 2, 2024

Does that mean a representative going out can vote on the same day one comes in?

Of course. In the general case, a member might resign after a vote on the same day another member elected by special election is sworn in. In the more specific Jan 3 case, there can be a vote in the morning of Jan 3 and a vote in the afternoon of Jan 3 and those would be in different Congresses with a (overlapping but) totally different set of legislators serving.

In this particular case, it's a father-son pair.

To help debugging, the issue you found can be reproduced by running one of:

./run votes --chamber=house --congress=107 --session=2001
./run votes --vote_id=h2-107.200

This was all working at some point because this is how I got the vote data into GovTrack in the first place, but something must have broken.

The way to properly resolve this is for us to compare the congress number of the vote to the congress numbers that the matched terms are for, but the latter needs to be computed (there is a function named get_term_congresses but I can't say if it is correct).

from congress.

Andrew-Chen-Wang avatar Andrew-Chen-Wang commented on September 2, 2024

Thanks for responding quickly. IIRC, from the congress-legislators repo, there was an XML file that included a tag <congress id="Congress number">. I just can't recall where I saw this or which link gets all congressmen data. Which link are we getting all the historical Congressmen from?

In that case, we can then update the files with that new data point, congress

from congress.

JoshData avatar JoshData commented on September 2, 2024

It reads the YAML files at https://github.com/unitedstates/congress-legislators/. (I don't think the XML file you are describing comes from these repos.)

from congress.

Andrew-Chen-Wang avatar Andrew-Chen-Wang commented on September 2, 2024

This repo reads the files stored in that repo. But I was wondering which files that repository collects, not this one.

from congress.

Related Issues (20)

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.