Giter Site home page Giter Site logo

ma_crawler's Introduction

MA_Crawler

A distributed crawler built for my master thesis. Goal is to collect data and pre-process it from e.g. GitHub.

Getting Started

Prerequisites

Node.js >= v10

Grakn.ai - 1.8.4

Docker (optional)

Docker-Compose (optional)

Start

Install Packages

npm i

Master

GITHUBACCOUNTS='[{"username": "name", "token": "00000"}]' TYPE=master node app.js

Crawler

node app.js

Docker

docker-compose up --build

Environment Variables

Please look at config.js for a better overview and understanding.

  • PORT - (def) '8000'
  • TYPE - (def) 'client' || 'master'
  • GRAKNURI - (def) 'localhost:48555'
  • SENTRY - (def) ''
  • MASTER_SOCKET - (def) 'http://localhost:8000' (Socket of the Master)
  • GITHUBACCOUNTS - (def) [] - example '[{"username": "name", "token": "00000"},...]'

ma_crawler's People

Contributors

langleu avatar

Stargazers

Niklas Kiefer avatar

Watchers

James Cloos avatar  avatar

ma_crawler's Issues

Database Connection

GraphDB (figure out which one)
possible mongodb for metadata?
dive deeper into neo4j and grakn. Take notes and decision making to the other repository.

Metadata storage?

could be used to check against duplication.
for error logging of crappy crawled files.

e.g. MongoDB

  • check how grakn deals with duplicates when it comes to the same key
    • if one tries to commit duplicates those will be automatically ignored and all uncommitted data will be removed as on every insert we immediately commit only the duplicate should be lost
  • maybe just write errors down to disk or sentry?

Client testing

spend a day testing the implementation of the client using various docker files.

any service of name X is linked to deployment

let graqlInsertQuery = `match $deployment isa deployment, has rid "${deploymentId}"; `;
graqlInsertQuery += `$service isa service, has name "${serviceName}"; `;

generate unique hash for services based on name + deployment sha

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.