Python Scraper for StudentVue Portals
Project description
StudentVue API
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
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
File details
Details for the file studentvue-1.2.2.tar.gz
.
File metadata
- Download URL: studentvue-1.2.2.tar.gz
- Upload date:
- Size: 4.6 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b706ed678f4b6993814b929dc5219c85e868d372ccea795bc64942f84bb4970 |
|
MD5 | 064b29799647f6caaf93d46e8b0f5472 |
|
BLAKE2b-256 | 5e210e113d2e2135fa0cca965d200da3523659bd2f0b499409a674fc5ea40868 |
File details
Details for the file studentvue-1.2.2-py3-none-any.whl
.
File metadata
- Download URL: studentvue-1.2.2-py3-none-any.whl
- Upload date:
- Size: 6.2 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d3933f195573320f93888e03f7ea70b9e6567ae9816b1d76725048e75f9f119 |
|
MD5 | 44d90b2180a31dab0335596bff28333e |
|
BLAKE2b-256 | fc22eba4e2a56e99eaafbccc615db0b0d1b4d06bab8051d1245bb93e2631dfa7 |