Skip to main content

Python module to access Webbscrapers API - https://webbscrapers.live

Project description

webbscrapers_api

Python module to access Webbscrapers API - https://webbscrapers.live

Created for easy access to Webbscrapers API - an API that allows for easy access to World Health Organisation reports - parsed and scanned by symptoms, location, diseases, etc.

Created for UNSW's SENG3011 course.

Documentation

Register

First, register a user to get the authorization token. You need the authorization token to access /reports, /statistics, and /covid-19 endpoints. You must supply an email and password.

import webbscrapers_api

webbscrapers_api.register("test@test.com", "this_is_my_password")

Login

If you have lost the authorization token, you can login and get the token again.

import webbscrapers_api

webbscrapers_api.login("test@test.com", "this_is_my_password")

Reports

To get reports from the World Health Organisation, use getReports()

import webbscrapers_api
from datetime import datetime

# webbscrapers_api.getReports(authorization_token, startDateTime, endDateTime, keyTerms, location, timezone)
webbscrapers_api.getReports("my_authorization_token", datetime(2019, 1, 1, 0, 0, 0), datetime(2020, 1, 1, 0, 0, 0), ['coronavirus', 'hiv'], 'Sydney', 'Australia/Sydney')

Covid-19 Cases

To get the current covid-19 cases by country/state/territory, use getCovid19Cases()

import webbscrapers_api

webbscrapers_api.getCovid19Cases("my_authorization_token")

Statistics

To get server statistics, use getStatistics()

import webbscrapers_api

webbscrapers_api.getStatistics("my_authorization_token")

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for webbscrapers-api, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size webbscrapers_api-0.0.2-py3-none-any.whl (3.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size webbscrapers_api-0.0.2.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page