Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Error handling in govinfo.py line 73 #259

Open
leonliangsc opened this issue Jun 5, 2020 · 5 comments
Open

[Bug] Error handling in govinfo.py line 73 #259

leonliangsc opened this issue Jun 5, 2020 · 5 comments

Comments

@leonliangsc
Copy link

for collection in sorted(options.get("bulkdata", "").split(",")):
     if collection != "":
           update_sitemap(BULKDATA_SITEMAPINDEX_PATTERN.format(collection=collection), None, [], options)

will render run time error when running the recommended script for downloading bulk bill text data
./run govinfo --collections=BILLS --congress=112 --store=pdf,mods,xml,text --bulkdata=False

@dwillis
Copy link
Member

dwillis commented Jun 5, 2020

Hi @leonliangsc: the govinfo command only works on bills from the 113th congress forward (see https://github.com/unitedstates/congress/wiki/bills for details).

@leonliangsc
Copy link
Author

Thanks for the quick reply.
To clarify, I was referring to this script.
Even with the option --congress=116,

options.get("bulkdata", "").split(",")

will still give out error "bool value does not have split()"

@JoshData
Copy link
Member

JoshData commented Jun 5, 2020

The wiki page is out of date. --bulkdata=False should not be used anymore in that example, I think.

@leonliangsc
Copy link
Author

That seems to be the case.
also use --extract=pdf,mods,... instead of --store=pdf,mods

@winrid
Copy link

winrid commented Mar 3, 2023

Note, for others, this does work in 2023:

usc-run govinfo --collections=BILLS --extract=text --bulkdata=False

If you omit the --collections argument then you get the options parse error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants