-
Notifications
You must be signed in to change notification settings - Fork 0
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
Scrape independent expenditure data #27
Comments
|
Each of these fields:
other than the donor info look like they're recorded in the |
I was working quickly, so it's very possible all of that info is in the main endpoint and we can save the request. Great spot, @antidipyramid. |
Scrape independent expenditure data from https://login.cfis.sos.state.nm.us/#/transaction/IE
To do this, page through the underlying API endpoint (https://login.cfis.sos.state.nm.us/api///Search/TransactionSearchInformation – use the Network tab in your console to see what those requests should look like). For each expenditure, get details and donors:
https://login.cfis.sos.state.nm.us/api/Public/GetExpenditureDetails?transactionID=1284056&transactionVersID=1
https://login.cfis.sos.state.nm.us/api///Public/GetIEDonors?transactionId=1284056&transactionVersId=1
Combine these data sources into a single record that looks something like:
Transaction Date
Reporting Entity Name
Reporting Entity Type
Payee
Payee Type
Payee Address
Expenditure Amount
Expenditure Description
Election Type
Election Year
Reason
Stance
Donor Name
Donor Address
Donor Amount
Upload the final dataset to S3.
The text was updated successfully, but these errors were encountered: