Skip to main content

Python Scraper for StudentVue Portals

Project description

StudentVue API

travis PyPI version

This repository provides a easy way to access data from StudentVue portals in Python programs.

Note:

If this library isn't updating properly, try explictly installing the latest version (e.g. pip3 install studentvue==1.2.1) to fix this issue in the future.

Logging In

pip install studentvue or clone / download the repository and python setup.py install.

from studentvue import StudentVue
sv = StudentVue('username', 'password', 'domain name') 

Basic API

classes = sv.get_classes()
"""
[
    'Period 2 CCSS Algebra 2A Taught by XXX XXX in Room XXX with a Grade of XX.X%',
    'Period 3 Chemistry A H Taught by XXX XXX in Room XXX with a Grade of XX.X%',
    ...
    'Period 7 AP Euro Hist A Taught by XXX XXX in Room XXX with a Grade of XX.X%',
    'Period 8 PE 2A Taught by XXX XXX in Room XXX with a Grade of XX.X%'
]
"""

# classes and teachers are both objects

print(classes[0].room) # XXX

print(classes[0].teacher.email) # XXX@XXX.XXX
sv.get_student_info()
"""
{
    'Student Name': 'XXXXX',
    'Student No': 'XXXXXX',
    'Gender': 'Male',
    'Grade': '10'
}
"""
sv.get_school_info()
# Principal, if supplied, will also be converted to a Teacher object
"""
{
    'Principal': Andrew Ishibashi,
    'School Name': 'Lowell HS',
    'Address': '1101 Eucalyptus DrSan Francisco, CA 94132',
    'Phone': '415-759-2730',
    'Fax': '415-759-2742',
    'Website URL': 'https://lhs-sfusd-ca.schoolloop.com/'
}
"""
with open('school_picture.png', 'wb') as school_picture_file:
  sv.get_image(school_picture_file)

Bugs and Contributing

The content and formatting of pages may vary from district to district, so the same parsing strategies might fail. If you find an instance of this, or have a general improvement you can raise a new issue and/or open a pull request.

TODO

  • Finish Scraper

  • Write tests

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

studentvue-1.2.3.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

studentvue-1.2.3-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file studentvue-1.2.3.tar.gz.

File metadata

  • Download URL: studentvue-1.2.3.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.4

File hashes

Hashes for studentvue-1.2.3.tar.gz
Algorithm Hash digest
SHA256 1fa6f3cfde45cb7b60ff0b360de3f0b1856c03a208e36bbaf5e8ccf65443daf7
MD5 9383dc677e78a2f19bdfa348ca0aa9ce
BLAKE2b-256 1d03b684b68809a1968e1311ed7a3eb159c1f17410b8e1c603a786a107c538df

See more details on using hashes here.

File details

Details for the file studentvue-1.2.3-py3-none-any.whl.

File metadata

  • Download URL: studentvue-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.4

File hashes

Hashes for studentvue-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4c4b4361ea827a96ebd8586e06455293d5e3c82534d483fb6f078e3a8c7d9d90
MD5 b736a4344fe5bc73f33e156735aae79e
BLAKE2b-256 c2b99098ad77be43b8e9cb0589f9e5a336b9f16f0216996cf8269dcf4384f9b7

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