Skip to content
Extension bots for Meedan Check, a collaborative media annotation platform
JavaScript Dockerfile Shell
Branch: develop
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.gitignore
.travis.yml
Dockerfile
README.md
config.js.example
docker-entrypoint.sh
exif.js
package-lock.json
package.json
server.js
youtube.js

README.md

Check Bots

A collection of bots that can be connected to Check API. They are implemented as AWS Lambda functions.

Bots

1. YouTube Data Bot

This bot is at youtube.js. It listens to the create_project_media event and, if it's a YouTube URL, it does the following:

  • Extracts thumbnails and runs reverse image search over each of them
  • Extracts upload date and creation data
  • Extracts geographic information

All those results are sent to Check as annotations.

2. EXIF Bot

This bot is at exif.js. It does the following:

  • Listens to the create_project_media event. If it's an uploaded image, it extracts EXIF data and posts it to Check as a comment, with a link for the full report.
  • Listens to the create_annotation_task_geolocation and update_annotation_task_geolocation. If it's an uploaded image, it extracts GPS data, geocodes it and posts the result as a task response to any unanswered geolocation task.

Usage

  • Copy config.js.example to config.js and define your configurations
  • Run npm run build
  • Create an AWS Lambda function with an API gateway and upload the ZIP file from the previous step
  • Define the correct handler (e.g., youtube.handler or exif.handler)
  • Copy the API gateway URL as the Request URL of the Check API bot

Local usage

  • Copy config.js.example to config.js and define your local configurations with checkApiUrl: http://localhost:3000.
  • Run npm run exif or npm run youtube to spin up a local server for either bot - note the port number.
  • Start Check locally
  • Find out the local host IP from the Check container as per https://stackoverflow.com/a/33103501
  • On the Check side, the bot request URL is the IP above with the port obtained when starting the bot.
You can’t perform that action at this time.