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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file webbscrapers_api-0.0.2.tar.gz.
File metadata
- Download URL: webbscrapers_api-0.0.2.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
359506d839f848708c0de6eddd6f35e53e779cf49ea5649849dbfafa690462a4
|
|
| MD5 |
58ced9325a97515fb897e098bf2571b6
|
|
| BLAKE2b-256 |
82cd9d0309549dc2101c84dba5a08f6f8d2cf3966957a3c413b8c6b36033a279
|
File details
Details for the file webbscrapers_api-0.0.2-py3-none-any.whl.
File metadata
- Download URL: webbscrapers_api-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7ccfe697ed4b2d8019bb6bd8c131cab3403c647ff014aaf3983e9edfc134b56
|
|
| MD5 |
a12e478ae69f61fe11ca76d8bd2d2c06
|
|
| BLAKE2b-256 |
2ce093b080292363bf34bfe59a9d2e8c7288c76febca83ee306ae651a8626909
|