Skip to content
This repository has been archived by the owner on Apr 24, 2018. It is now read-only.

itkpi/events-parser

Repository files navigation

Build Status dependencies Status devDependencies Status Codacy Badge

events-parser

JavaScript Style Guide

Events-parser work with:

  • DOU.ua
  • Meetup.com
  • AIN.ua
  • BigCityEvent.com
  • FB.com
  • VK.com (in future)

Licensed under the Apache License, Version 2.0.

Prerequisites

Clone repo

$ git clone [email protected]:itkpi/events-parser.git

Build and run

Vagga-way

Add enviroment keys

Add variables to your shell on this pattern:
$ export VAGGA_ENV_%variable_name%='%value%'

Warning! Keep in mind how your shell work with variables: kept variables only in active session or global.

Or add variables to environ: in your vagga.yaml
%variable_name%: %value%

Warning! environ: variables has higher priority than shell variables.

All supported enviroment variables

Install dependencies and run

$ vagga run

NodeJS-way

Add enviroment keys

Add variables to your shell on this pattern:

$ export %variable_name%='%value%'

Warning! Keep in mind how your shell work with variables: kept variables only in active session or global.

All supported enviroment variables

Install dependencies

$ npm install

Run

$ node main.js

All supported enviroment variables

Need for send events to API

EMAIL='[email protected]' 
HOSTNAME_URL='your.api.host.name'
HOSTNAME_PATH='/path/to/you/suggestions/api'
HOSTNAME_PORT='80'

Need for Blacklist

BAN_IN_TITLE='Ignore this phrase|and this|case insensitive'
BAN_IN_TITLE_OR_AGENDA='Ignore this phrase or company|and this|case insensitive'
BAN_COURSE_TITLE='Курс|Course' #case insensitive
BAN_COURSE_COMPANY='Ignore courses by this company|and this|you can ban by URLs - it\'s more efective'

Meetup access token

MEETUP_OPEN_EVENTS='https://api.meetup.com/2/open_events?your-settings'

More details about MEETUP in this page.

Facebook access token

FB_ACCESS_TOKEN='your_facebook_token'

You can get Access Token on this page.

Yandex Translate API-key

YANDEX_TRANSLATE_KEY='Your Yandex-Translate API-key'

You can get API-key on this page.