Comments (5)
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.
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.
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.
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.
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)
- Python 3 support HOT 6
- Some bills (maybe 1/7 of them) give module 'lxml.html' has no attribute 'entities' HOT 1
- Vote format has changed for House 2020? HOT 6
- [Bug] Error handling in govinfo.py line 73 HOT 5
- [Bug] Votes scraper not pulling in most recent vote, until I cleared cache HOT 2
- [Bug] Bad zip file HOT 1
- Newbie Q: Pulling bills for only one topic HOT 2
- Is there any interest in using govinfo's bulkdata zip files HOT 1
- Error: ImportError: No module named html.entities after the Feb 28th update HOT 4
- Unable to scrape Committee meetings HOT 1
- Downloading House votes in 2001 and 1991 raises exception HOT 5
- Error in parsing sponsor & byRequest HOT 4
- Discrepancies on amendment roll call votes
- Update PyPI Package HOT 8
- (votes, committee_meetings): senate.gov and clerk.house.gov not redirecting to https
- Correct Virtual Env Suggestion
- Request - Include Mastodon ID for members of congress HOT 2
- Error from lxml when parsing amendments "purpose" field HOT 1
- Bills & data.json HOT 1
- Errors when parsing amendments for 118th Congress
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from congress.