Code Monkey home page Code Monkey logo

globalgiving-depth's People

Contributors

arynh avatar jackieo5023 avatar joshburke avatar lam7150 avatar osaesm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

maz2198 ifv

globalgiving-depth's Issues

Migrate data to new (larger) database

We're running out of space on our mLab instance, and it would be nice to have better querying options for our data. We need a new, larger, smarter database.

Set up circleci for testing and linting

CircleCI should be able to test our code an appropriately capable yet lightweight environment.
Ideal workflow:

  • push code w/ tests
  • get results on formatting
  • run build tests
  • run custom tests

Create basic classifier using heuristic methods

(This is the epic issue for our heuristic method classifier; please reference this in issues.)

The most basic way we can classify the work NGOs do (besides guessing) is to use simple heuristic methods. These are ways of intuiting what our most basic, reducible reactions to information are and attempting to translate those into programmatic instructions. This is complicated given that we have immense prior knowledge and the experiences/collective memory of humanity backing up our judgements.

So how do we solve this? Let's start by assessing the most simple parts of the information we have. Which words do we have? How many? With what frequencies? Where do these words occur? Which parts of webpages are significant and which are not? If you were directing an NGO and trying to get your organization's mission across through your website, what would you say? What are our limitations? These are all consideration we need to make (refer to our brainstorming sessions).

This issue should be closed by MVP. ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ

General website visible text scraper

Make a python function that, given the URL of an NGO website, returns a JSON object of all visible text on the website.
This can be a single block of text, k/v pairs of subpage_name: "subpage_text", or some other dictionary with informative fields like contact numbers, sponsors/affiliates, etc.
This scraper should be thorough and scrape all possible text from the site.

Generate training/testing datasets

Use GlobalGiving's public API to get some records of NGOs (name, URL, category, country, add to the schema as you see fit). This should be a python script which saves a list of these records as a JSON file.

Create classifier using bag of words implementation

Sub-issue of #13
Heuristic method that classifies organizations through a bag of words implementation

  • Generates dictionaries of relevant words to each category by collecting webscraped words of already classified organizations
  • Uses the above dictionaries to classify new organizations by frequency of categorical words in text of the new organizations' website (ex. if the website has the more animal-related words than any other category, it will be classified as an animal organization)

Upload new unlabelled dataset

Subissue of #3, today we got a new unlabelled dataset from Nick. It would be cool if the team had access to it on the database.

Set up database w/ database interaction module

We're going to need a central place to store data, right now we're just doing it in JSON files. Ideally we'd like to have a database so we can do more complex queries, be able to make full use of our data, etc.

We're looking at using NOW or MLab, either way we'd also like to build a python module to abstract interaction with the database to make it easier to read/write.

Data needs to be cleaner

Related to #15

We have some data to work with, but it is polluted by the problems encountered in extracting the text from a website. As mentioned in #15, we don't pull any valid text from websites which require JS. We also don't have a way to know if a website fails if it returns an HTTP code of 2** (there are some websites which display a 404 page but return 200). There are also pages which are filled with ads, or pages which advertise domains which are for sale.

Get single string of visible text from url

Subissue of #4

  • create function to get all visible text from a webpage
  • concatenate into a single string that is outputted into a json file
  • search through all subpages of a website

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.