Coder Social home page Coder Social logo

wikimetrics-2's Introduction

Hi there 馃憢

wikimetrics-2's People

Contributors

testica avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

adrianjmejias

wikimetrics-2's Issues

Preparar entorno de desarrollo

  • Instalar node para servidor web local
  • Npm para instalar paquetes como Angular
  • Editor de texto (Visual Studio Code)
  • Navegador de Internet (Chrome & Firefox)

Implementar componente y servicio para agregar art铆culo

Para agregar un art铆culo es necesario indicar el idioma, es decir, si es un art铆culo en ingles o espa帽ol y el t铆tulo.
Luego con la localidad y el t铆tulo del art铆culo se usara el api de wikimetrics para extraerlo y guardar estado de la extracci贸n en nuestra api.

Estudiar API Wikimetrics 2.0

El repositorio del api se encuentra aqu铆

  • Revisar rutas
  • Definir modelo segun respuestal del api

Revisar rutas

Se chequearon las rutas y luego se hicieron observaciones sobre estas:

  • GET /articles -> obtenemos una lista de articulos
  • GET /articles/<pageid> -> obtenemos un art铆culo en espec铆fico
  • GET /revisions? [pageid | pagesize | page ] -> obtener revisiones que cumplan con los filtros
  • GET /count -> obtener numero de revisiones
  • GET /avg? (datestart | dateend) -> obtener promedio de revisiones en base a la cantidad de dias dado un intervalo de fecha
  • GET /mode? (attribute) -> obtener el attributo que m谩s se repite en las revsiones

Cabe destacar que count, avg y mode incluyen filtros pero estos se est谩n mejorando.

Definir modelo segun respuesta

Dada una respuesta en formato json tenemos que definir nuestro modelo en base a los campos que necesitamos

  • Art铆culo
    Respuesta:
{
 pageid => number,
 title => string
 first_extraction_date => { $date => UNIX },
 last_extraction_date => { $date => UNIX },
 last_revision_extracted => number
}

Modelo:

{
 id => number
 title => string
 last_revision => number
}
  • Revisi贸n
{
 * => string,
 comment => string,
 size => number,
 sha1 => string,
 pageid => number,
 tags => string array,
 timestamp => { $date => UNIX },
 userid => number,
 revid => number.
 parsedcomment => string,
 contentformat => string,
 contentmodel => string,
 extraction_date => { $date => UNIX },
 parentid => number,
 title => string,
 minor? => string,
 user => string,
 anon? => string
}

Modelo :

{
 id => number,
 pageid => number,
 size => number,
 tags => string array,
 timestamp => UNIX,
 user => string,
 anon => boolean,
 minor => boolean
}

Estudiar API MediaWiki

  • Investigar como autenticarse
  • Investigar como obtener watchlist

Investigar como autenticarse

Actualmente volvieron obsoleto un sistema sencillo de login, por lo tanto se usara el nuevo, que conlleva a pasos m谩s complejos pero es m谩s seguro. Toda la explicaci贸n se puede encontrar aqu铆, hay que usar el metodo clientlogin.

Investigar como obtener watchlist

Una vez iniciada la sesi贸n, podemos tener acceso al watchlist del usuario. Explicaci贸n aqu铆

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.