This project allows for the scraping of Michigan's Secretary of State site in order to collect information on political campaigns. This project uses the Moovweb Platform to create a synethic JSON API, which then can be consumed from the scripts located in command_line_tools.
To run this project, you must have the Moovweb SDK installed on your system. For installation and account information go to the download page on the Moovweb site.
Currently contributions is the only area implemented. In order to get the required parameters view the campaign in question on the Michigan SoS website. The query parameters present should be copied into the command line scripts.
First start up the Moovweb server
$ sudo moov start
Then in a separate tab you can make calls to this server using the Ruby command line scripts. E.G.
$ ruby gather_contributors.rb
By default results are saved to a TSV file named results.tsv
You can deploy this project to the Moovweb cloud infrastructure and then call the API server from there
If running sudo moov server
, remember to put all domains you're going to hit in your etc/hosts if you run your server with the -auto-hosts=false
option.
127.0.0.1 mlocal.miboecfr.nictusa.com