Git Product home page Git Product logo

seng3011_api-demic's Introduction

SENG3011 API-demic Project Overview

This repository is a SENG3011 project. The aim is to collect data about health related articles from different sources to help others analyse and track epidemics. There is also the source code for Covid-Scout, a interactive web application that focuses in helping everyone worldwide with the latest statistics and news about the coronavirus.

Team Members

  • Aaron (z5208530)
  • Kevin (z5214693)
  • Logann (z5294830)
  • Peter (z5208980)

Folders

  • Phase 1

Contains the API implementation, Scraper, Database and API Testscripts.

  • Phase 2

Contains Webpage.

  • Reports

Contains Design Details, Management Information Report, Testing Report and Final Report

Links

  • API-demic API (Docs) (Github) - An API that extracts new sources from H5N1 and trending health terms
  • Covid-Scout (Github) (Website) - Responsive web application detailing latest statistics and news on Covid-19 globally and for Australians

API-demics API Endpoints

These are API-demics latest versions and endpoints

GET

/v1.1/articles?

/v1.1/articles/latest?

/v1.1/trending


GET /v1.1/articles

Find articles according to query parameters

Parameters

Parameter Required Type Description
start_date Required String (YY-MM-DDTHH:MM:SS) Start date for query
end_date Required String (YY-MM-DDTHH:MM:SS) End date for query
location Optional String Location that articles will focus on
key_term Optional List List of string with seperator as ,
limit Optional Int number of new articles to return

Response

200

{
  "articles": [
    {
      "url": "string",
      "date_of_publication": "string",
      "header": "string",
      "main_text": "string",
      "reports": [
        {
          "event_date": "string",
          "locations": [
            {
              "country": "string",
              "location": "string"
            }
          ],
          "diseases": [
            "string"
          ],
          "syndromes": [
            "string"
          ]
        }
      ]
    }
  ],
  "log": {
    "provider_name": "API-demic",
    "accessed_time": "string",
    "amount_of_articles": "string",
    "response_time": "string"
  }
}

400

{
  "status": 400,
  "message": "Invalid Query Parameters (Date)"
}

404

{
  "status": 404,
  "message": "No result for query"
}

GET /v1.1/articles/latest

Find the latest articles on certain topics

Parameters

Parameter Required Type Description
on Required List List of string to search on, seperator as ,

Response

200

{
  "articles": [
    {
      "url": "string",
      "date_of_publication": "string",
      "header": "string",
      "main_text": "string",
      "reports": [
        {
          "event_date": "string",
          "locations": [
            {
              "country": "string",
              "location": "string"
            }
          ],
          "diseases": [
            "string"
          ],
          "syndromes": [
            "string"
          ]
        }
      ]
    }
  ],
  "log": {
    "provider_name": "API-demic",
    "accessed_time": "string",
    "amount_of_articles": "string",
    "response_time": "string"
  }
}

400

{
  "status": 400,
  "message": "Invalid Query Search Term: On Args",
  "search_list": [
    {
      "term": "string"
    },
  ]
}

404

{
  "status": 404,
  "message": "No result for query",
  "search_list": [
    {
      "term": "string"
    },
  ]
}

GET /v1.1/trending

Find search phrases most used by others

Response

200

{
  "trending_terms": [
    "string"
  ],
  "log": {
    "provider_name": "API-demic",
    "accessed_time": "string",
    "amount_of_articles": "string",
    "response_time": "string"
  }
}

Running the Covid-Scout locally

If you want to host the site for viewing, then you need

  • Python
  • Pip
  • Virtualenv
   $ git clone https://github.com/z5208980/SENG3011_API-demic.git
   $ cd PHASE_2/API_SourceCode
   $ source venv/bin/activate
   $ pip3 install -r requirements.txt
   $ python3 app.py

http://localhost:8000/

APIs and Dataset

  • (API-demic) - Main source for new articles (Our API)

  • (Sixtyhww) - SENG3011 Team API for news articles

  • (Thevirustracker) - Covid-19 latest updates (Used as widget)

  • (CSSEGISandData) - Dataset for Covid-19 globally

  • (Data.NSW) - Dataset for latest Covid-19 positive in NSW

  • (The Guardian) - Dataset for Australia Covid-19 statistics by states

  • (Pomber) - Dataset for latest Covid-19 cases by country in timeseries

seng3011_api-demic's People

Contributors

5208980 avatar kevinwell avatar forevaa avatar

Watchers

James Cloos avatar Madhushi Bandara avatar  avatar

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.