GithubHelp home page GithubHelp logo

lukas-buergi / usa-sec Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4.51 MB

Collect information from the American SEC about investments in nuclear weapons held by Swiss companies

Home Page: https://gsoa.ch

License: GNU Affero General Public License v3.0

Python 100.00%

usa-sec's Introduction

Collect information from the American SEC about investments in nuclear weapons held by Swiss companies. This is easy to adapt to other countries, or other lists of problematic companies.

Take the results with a large grain of salt. The SEC data also has errors sometimes, like a comma that's accidentally shifted three places to the left.

Download data with fetch.py and analyse it with analyse.py.

Notes about fetch.py:

  • Please change the HTTP headers before using - the SEC insists on you supplying your name and contact information in this way.
  • This downloads about 2GB of data in the default configuration. The SEC servers are fairly fast, it shouldn't take longer than an hour.
  • This uses around 10GB of disk space in the default configuration and can easily use 25GB if you download a larger subset of the files the SEC offers.

Notes about analyse.py

  • It takes a long time to run, maybe 30 minutes. I'm not sure why, most likely parsing a few thousand malformed xml files using Beautiful Soup is slow.
  • It skips a lot of files which are in an older format, but only before 2014.
  • It skips some files where it doesn't get any meta data (like date) before failing

usa-sec's People

Contributors

lukas-buergi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.