Giter Site home page Giter Site logo

covid-api's Introduction

covid-api

It's just a simple flask-restful project. You can simply run on your local computer
'python3 runserver.py'
or organize something like "nginx + uwsgi + app", or even use it in docker container

REQUIRED ENVIRONMENT VARIABLES

# Mongo DB to store posts

  • MONGODB_HOST
  • MONGODB_PORT
  • MONGODB_DB
  • MONGODB_USER
  • MONGODB_PASSWORD
  • MONGODB_AUTH_DB
  • MONGODB_RESULT_COLLECTION - collection to store posts

How to use:

Api call example

  • https://covid19-mentions-db.com/api/search?object_text=Microsoft&limit=20&source=&author_id&object_text=&language&keyword&lat=&lon=&distance=&time_start=&time_end=&location=Canada

All the supported parameters:

  • source - source of posts, possible values ['twitter', 'instagram', 'facebook']
  • object_text - post text(full text search)
  • language - language of post text(specified with object_text, need for stemming support, default value - en)
  • keyword - keyoword, used to find this post
  • lat - latitude of post
  • lon - longitude of post
  • distance - distance in metest, default=1000
  • time_start - posts older than specified timestamp
  • time_end - posts younger than specified timestamp
  • limit - limit of results, default=12, max=10000

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.