A Flask-based website and Python scripts automating web analysis on federal government domains for the Sunlight Foundation's Web Integrity Project. The website is designed to be hosted on an AWS EC2 instance, which calls Python programs to run on another AWS EC2 instance, and stores output onto a Google Drive account. This site structure flows from what capacities AWS provides in its free student account, so fedwedanalysis will work on a AWS Free Tier.
It is recommended reaching the EC2 instances via Putty and FileZilla.
- Contains
templatesfolder, with HTML files of the website. - Contains
staticfolder, with CSS file of the website. - Contains an
uploadsfolder. - Contains your access
.pemfile for the computing instance inside your.sshfolder - Contains
app.py,helpers.py,client_secrets.jsonfile (from your Google OAuth access), and optionally asettings.yamlfile
- Contains domain specific scraping Python programs, which obtain all the URLs on a federal domains' sitemap
- Contains term finding Python program adapted highly from Eric Nost's EDGI controlf.py, which counts the usage of a file of terms over a set of urls
- Contains term aggregating Python program conceptually adapted from Eric Nost's EDGI termcount.R
- Contains web_monitoring folder with two files
internetarchive.pyandutils.pytaken from a component of EDGI's Web Monitoring Project - Contains bash files for running each Python program
- Contains your access
.pemfile for the Flask instance inside your.sshfolder