Git Product home page Git Product logo

minegob's Introduction

MINEGOB

alt text

Description

This repository contains multiple functions that allow any given user to mine, process and publish statistical information regarding the behaviour of the distinct datasets available at www.datos.gob.mx. The general pipeline goes as follows:

  • Extract dataset metadata from ckan
  • Process metadata and extract statistical information regarding resources, datasets, and institutions.
  • Integrate data with information extracted from google analytics.
  • Upload the data sets into a drive repository.
  • Register transaction in Zendesk.

Usage

In the following, we'll assume the user is located in the upload_adela directory. An empty data should be created at the same level as src.

Extract dataset from CKAN

Simply execute (dependencies stated at the top of the file):

./mine_ckan.py

the output dataset, MAT.csv, will be stored at ../data/MAT.csv.

Process metadata and Google Analytics integration

For this step you need to edit and execute process.R. Firstly, replace AUTH and KEY with your actual values

token <- Auth("AUTH.apps.googleusercontent.com",
              "KEY")

Secondly, after executing for the first time and authorizing the application, the following lines might be commented:

token <- Auth("AUTH.apps.googleusercontent.com",
              "KEY")
save(token, file="oauth_token")
load("oauth_token")
## Validatetoken
ValidateToken(token)

Upload data sets into drive repository

Replace path='....' with actual path and execute:

./upload.py

Register transaction in Zendesk

Edit send_urls.R replacing the following with actual values

    email   <- "mail@mail"
    admi    <- "user"
    idad    <- "123456"
    subid   <- "123456"

as well as mail@mail:psswd in cl_curl. Afterwards simply:

./send_urls.R

minegob's People

Contributors

lromang avatar

Stargazers

horlar avatar

Watchers

James Cloos avatar  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.