usgpo / bill-status

Information about Bill Status XML Bulk Data including the XML User Guide.
https://www.govinfo.gov/bulkdata/BILLSTATUS
152 stars 64 forks source link

(BillStatus XML v3): `<amendment>` has duplicated children #204

Closed ryparker closed 4 months ago

ryparker commented 1 year ago

The BIllStatus XML contains duplicated children under <bill>.<amendments>.<amendment>. Most values are the same except for <updateDate>:

e.g. curl --location --request GET 'https://www.govinfo.gov/bulkdata/BILLSTATUS/117/hr/BILLSTATUS-117hr1.xml' returns amendments like this:

<amendment>
        <number>22</number>
        <congress>117</congress>
        <type>HAMDT</type>
        <description>An amendment numbered 37 printed in Part B of House Report 117-9 to lower the mandatory minimum voting age in Federal elections to 16 years of age.</description>
        <purpose>Amendment sought to lower the mandatory minimum voting age in Federal elections to 16 years of age.</purpose>
        <updateDate>2022-02-09T12:35:09Z</updateDate>
        <number>22</number>
        <congress>117</congress>
        <type>HAMDT</type>
        <description>An amendment numbered 37 printed in Part B of House Report 117-9 to lower the mandatory minimum voting age in Federal elections to 16 years of age.</description>
        <purpose>Amendment sought to lower the mandatory minimum voting age in Federal elections to 16 years of age.</purpose>
        <updateDate>2022-02-09T05:47:34Z</updateDate>
        <latestAction>
          …
        </latestAction>
        <sponsors>
          …
        </sponsors>
        <submittedDate>2021-03-03T05:00:00Z</submittedDate>
        <chamber>House of Representatives</chamber>
        <amendedBill>
         …
        </amendedBill>
        <actions>
          …
        </actions>
</amendment>
llaplant commented 1 year ago

Updated and reprocessed.

https://www.govinfo.gov/bulkdata/BILLSTATUS/117/hr/BILLSTATUS-117hr1.xml

<amendment>
<number>22</number>
<congress>117</congress>
<type>HAMDT</type>
<description>An amendment numbered 37 printed in Part B of House Report 117-9 to lower the mandatory minimum voting age in Federal elections to 16 years of age.</description>
<purpose>Amendment sought to lower the mandatory minimum voting age in Federal elections to 16 years of age.</purpose>
<updateDate>2022-02-09T05:47:34Z</updateDate>
<latestAction>
<actionDate>2021-03-03</actionDate>
<text>On agreeing to the Pressley amendment (A008) Failed by the Yeas and Nays: 125 - 302 (Roll no. 57).</text>
<actionTime>13:07:13</actionTime>
<links>
<link>
<name>Roll no. 57</name>
<url>https://clerk.house.gov/evs/2021/roll57.xml</url>
</link>
</links>
</latestAction>
<sponsors>
<item>
<bioguideId>P000617</bioguideId>
<fullName>Rep. Pressley, Ayanna [D-MA-7]</fullName>
<firstName>Ayanna</firstName>
<lastName>Pressley</lastName>
<party>D</party>
<state>MA</state>
<identifiers>
<bioguideId>P000617</bioguideId>
</identifiers>
<district>7</district>
</item>
</sponsors>
<submittedDate>2021-03-03T05:00:00Z</submittedDate>
<chamber>House of Representatives</chamber>
<amendedBill>
<congress>117</congress>
<type>HR</type>
<originChamber>House</originChamber>
<originChamberCode>H</originChamberCode>
<number>1</number>
<title>For the People Act of 2021</title>
<updateDateIncludingText>2023-03-08T20:26:21Z</updateDateIncludingText>
</amendedBill>
<actions>
<count>9</count>
<actions>
<item>
<actionDate>2021-03-03</actionDate>
<actionTime>13:07:13</actionTime>
<text>On agreeing to the Pressley amendment (A008) Failed by the Yeas and Nays: 125 - 302 (Roll no. 57).</text>
<type>Floor</type>
<actionCode>H34111</actionCode>
<sourceSystem>
<code>2</code>
<name>House floor actions</name>
</sourceSystem>
<recordedVotes>
<recordedVote>
<rollNumber>57</rollNumber>
<chamber>House</chamber>
<congress>117</congress>
<date>2021-03-03T18:07:13Z</date>
<sessionNumber>1</sessionNumber>
<url>https://clerk.house.gov/evs/2021/roll057.xml</url>
</recordedVote>
</recordedVotes>
</item>
<item>
<actionDate>2021-03-03</actionDate>
<actionTime>11:05:08</actionTime>
<text>The previous question was ordered on the amendment (A008) pursuant to the rule.</text>
<type>Floor</type>
<actionCode>H34180</actionCode>
<sourceSystem>
<code>2</code>
<name>House floor actions</name>
</sourceSystem>
</item>
<item>
<actionDate>2021-03-03</actionDate>
<actionTime>10:49:22</actionTime>
<text>Amendment (A008) offered by Ms. Pressley. (consideration: CR H1025-1027, H1037; text: CR H1025)</text>
<type>Floor</type>
<actionCode>H3A100</actionCode>
<sourceSystem>
<code>2</code>
<name>House floor actions</name>
</sourceSystem>
</item>
<item>
<actionDate>2021-03-03</actionDate>
</item>
<item>
<actionDate>2021-03-03</actionDate>
<text>House amendment offered</text>
<type>Floor</type>
<actionCode>71000</actionCode>
<sourceSystem>
<code>9</code>
<name>Library of Congress</name>
</sourceSystem>
</item>
<item>
<actionDate>2021-03-03</actionDate>
<actionTime>10:49:22</actionTime>
<text>House amendment offered/reported by: Amendment (A008) offered by Ms. Pressley.</text>
<type>NotUsed</type>
<actionCode>71500</actionCode>
<sourceSystem>
<code>9</code>
<name>Library of Congress</name>
</sourceSystem>
</item>
<item>
<actionDate>2021-03-03</actionDate>
<actionTime>13:07:13</actionTime>
<text>Amendment failed by House: On agreeing to the Pressley amendment (A008) Failed by the Yeas and Nays: 125 - 302 (Roll no. 57).</text>
<type>NotUsed</type>
<actionCode>80000</actionCode>
<sourceSystem>
<code>9</code>
<name>Library of Congress</name>
</sourceSystem>
<recordedVotes>
<recordedVote>
<rollNumber>57</rollNumber>
<chamber>House</chamber>
<congress>117</congress>
<date>2021-03-03T18:07:13Z</date>
<sessionNumber>1</sessionNumber>
<url>https://clerk.house.gov/evs/2021/roll057.xml</url>
</recordedVote>
</recordedVotes>
</item>
<item>
<actionDate>2021-03-03</actionDate>
<actionTime>13:07:13</actionTime>
<text>Roll call votes on amendments in House</text>
<type>Floor</type>
<actionCode>75000</actionCode>
<sourceSystem>
<code>9</code>
<name>Library of Congress</name>
</sourceSystem>
<recordedVotes>
<recordedVote>
<rollNumber>57</rollNumber>
<chamber>House</chamber>
<congress>117</congress>
<date>2021-03-03T18:07:13Z</date>
<sessionNumber>1</sessionNumber>
<url>https://clerk.house.gov/evs/2021/roll057.xml</url>
</recordedVote>
</recordedVotes>
</item>
<item>
<actionDate>2021-03-03</actionDate>
<actionTime>13:07:13</actionTime>
<text>House amendment not agreed to: On agreeing to the Pressley amendment (A008) Failed by the Yeas and Nays: 125 - 302 (Roll no. 57).</text>
<type>Floor</type>
<actionCode>73000</actionCode>
<sourceSystem>
<code>9</code>
<name>Library of Congress</name>
</sourceSystem>
<recordedVotes>
<recordedVote>
<rollNumber>57</rollNumber>
<chamber>House</chamber>
<congress>117</congress>
<date>2021-03-03T18:07:13Z</date>
<sessionNumber>1</sessionNumber>
<url>https://clerk.house.gov/evs/2021/roll057.xml</url>
</recordedVote>
</recordedVotes>
</item>
</actions>
</actions>
</amendment>
ryparker commented 4 months ago

Fixed.