You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where the array in same_titles shares any of the titles of the other documents: it is symmetrical, in that if 115hr123 is in the array of same_titles for 116s130, then 116s130 should be in the array corresponding to 115hr123.
I will open another issue for a 'next' step to provide a richer JSON of related bills.
The text was updated successfully, but these errors were encountered:
I believe I have this ready to go. Thanks for the help! There are a few things you have going on in your main() function I dont know about yet, will be looking into those today.
defmain(args, loglevel):
logging.basicConfig(format="%(levelname)s: %(message)s", level=loglevel)
logging.info("You passed an argument.")
logging.debug("Your Argument: %s"%args.argument)
# TODO consider loading billsMeta before updating# TODO consider updating only current congressupdateBillsMeta()
if__name__=='__main__':
parser=argparse.ArgumentParser(
description="Generates billdata.json metadata file",
epilog="As an alternative to the commandline, params can be placed in a file, one per line, and specified on the commandline like '%(prog)s @params.conf'.",
fromfile_prefix_chars='@' )
parser.add_argument(
"-a",
"--argument",
action='store',
dest='argument',
help="sample argument")
parser.add_argument(
"-v",
"--verbose",
dest='verbose',
help="increase output verbosity",
action="store_true")
args=parser.parse_args()
# Setup loggingifargs.verbose:
loglevel=logging.DEBUGelse:
loglevel=logging.INFO
This is the topic of PR #5
Create an output
relatedBills.json
that collects bills that have the same title.The first version of this will be of the form:
Where the array in
same_titles
shares any of the titles of the other documents: it is symmetrical, in that if115hr123
is in the array ofsame_titles
for116s130
, then116s130
should be in the array corresponding to115hr123
.I will open another issue for a 'next' step to provide a richer JSON of related bills.
The text was updated successfully, but these errors were encountered: