Git Product home page Git Product logo

Comments (5)

JoshData avatar JoshData commented on June 15, 2024

On 09/04/2012 05:09 PM, Derek Willis wrote:

Do we want to include info about different versions of a bill? Some
bills don't have more than one, but for others, Thomas shows something
like this:

http://thomas.loc.gov/cgi-bin/query/z?c112:S.978:


Reply to this email directly or view it on GitHub
https://github.com/congress/thomas/issues/11.

I've only used that for bill text, which could/should be a separate scraper?

  • Josh Tauberer

http://razor.occams.info | @JoshData

from congress.

konklone avatar konklone commented on June 15, 2024

Yeah, I think this is information best gotten from GPO. I have two parsers that work with bill versions and text -

One uses FDSys' crawlable sitemaps (a feature Josh pointed out to me a while back) to download and keep in sync with all of the bill versions that get posted to their bills collection:
https://github.com/sunlightlabs/realtimecongress/blob/master/tasks/bulk_gpo_bills/bulk_gpo_bills.rb

The other reads those in (their text and their associated MODS XML file), pulls out version information and attaches it to any existing bill information I got from GovTrack/THOMAS, and does various kinds of post-processing (like US Code citation extraction):
https://github.com/sunlightlabs/realtimecongress/blob/master/tasks/bill_text_archive/bill_text_archive.rb

It might be good to publish this version information as part of this project's output. I've seen GPO run behind THOMAS in posting bill text, so it'd be best for the THOMAS-collection part to not depend on version info being posted on GPO, and for bill version information to be pulled and published separately from (but alongside) the regular bill data.

If someone feels like porting my Ruby code into a bill_versions.py task that syncs with GPO and publishes metadata and downloaded text for each bill version, that would certainly fit well with the project.

from congress.

konklone avatar konklone commented on June 15, 2024

Or - it could be its own small repo, since it's not "thomas" data. It's not a scrape job, it won't need unit tests, its sole purpose is to keep a predictable dataset up to date. That could even free it up to be another language. As long as each repo, when deployed, uses the same directory for outputting data, it would be pretty seamless.

from congress.

konklone avatar konklone commented on June 15, 2024

In fact, for a while I've thought about making a slightly generalized FDSys syncing service, since each collection is structured so similarly and could be crawled the same way. I'm getting ahead of myself, but doing that (this would make it easier to get committee reports and treaties, as well) is possibly a reason to consider making a separate 'gpo' repository.

from congress.

konklone avatar konklone commented on June 15, 2024

I'm gonna close this one for the time being, feel free to re-open it if you want to talk through it more.

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.