Skip to main content

Fetch results of various national examinations done in Tanzania

Project description

Necta-API

Get a formated data of examination results scrapped from necta results website.

Note this is not an official NECTA API and is still in development

Current version is Beta 1.0.0

Developed by Tanzania Programmers, written by Vincent Laizer.


Usage

  • Get the package via pip
    pip install nectaapi 
  • Get a list of all schools in a given year and exam type.

exam type can be acsee or csee (for now, more to be added)

    from nectaapi import scrapper as sc

    data = sc.schools(2017, 'csee') 

the function returns a dictionary in the form

{
    "exam_type": "examamination type",
    "year_of_exam": "year of examination",
    "number_of_schools": "number of schools in this exam and year",
    "description": "description of this particular result",
    "schools": [
        {
            "school_name": "school name 1",
            "registration_number":"registration number 1"
        },
        {
            "school_name": "school name 2",
            "registration_number":"registration number 2"
        },
         ...]
}
  • Get a highlight of school overal results
  from nectaapi import scrapper as sc

  sammury = sc.schoolSummary(year, examType, schoolNumber)

  # schoolNumber is the schools registration number ie s3881 or s1268

this function is still buggy due to the varying nature of results publishing structure in necta website across the years

  • Get a single students results
  from nectaapi import scrapper as sc

  results = sc.student(year, examType, schoolNumber, studentNumber)

  # student number is the students part of their examination number eg 0040 or 0553

The 'student' function returns a dictionary of this form

  {
      "number": "students examination number",
      "division": "students division",
      "points": "students points",
      "subjects": {
          "subject name 1": "its grade",
          "subject name 2": "its grade",
          ...
      }
  }

check out video tutorial on YouTube for demos.


contributions are awaited for

GitHub repo nectaapi

Project details


Download files

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

Source Distribution

nectaapi-1.0.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

nectaapi-1.0.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file nectaapi-1.0.1.tar.gz.

File metadata

  • Download URL: nectaapi-1.0.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for nectaapi-1.0.1.tar.gz
Algorithm Hash digest
SHA256 be55aeb2d9f697ed1b2640dd090c38ac0b25ce44c52626ebbeba168e62012585
MD5 d54e0d2e7b6f1c7ad430d4f1c86cf7b1
BLAKE2b-256 c6b944a543bbd16e1653b90a7b35fb037f6f544e61dc819ba149580dd58cce93

See more details on using hashes here.

File details

Details for the file nectaapi-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: nectaapi-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for nectaapi-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4f7cd650e99c4aeed4bf39ba8dc3222f1f64f9ca91d13ee803c8bf36777697ae
MD5 525eeda25641d80ce4ebca8456a8070b
BLAKE2b-256 a506355fc4664e4dddde113a9da82d82e451b077261c1b305b6ee765e1481395

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page