biw / mycuinfo-api Goto Github PK
View Code? Open in Web Editor NEWAn API for the myCUinfo system at CU Boulder
Home Page: http://mycuinfo.colorado.edu
License: MIT License
An API for the myCUinfo system at CU Boulder
Home Page: http://mycuinfo.colorado.edu
License: MIT License
x = session.get('http://mycuinfo.colorado.edu')
returns the source for the following redirect page
Hey,
Are you still actively maintaining (and updating) the API and accepting pull requests with new features?
~Apara (fellow CU student)
Because of some very recent changes to myCUinfo system, this line attempts to convert some non-numeric characters to float. And the program breaks there.
I did some checking and this is what the webpage looks like now (5/26/2017):
And this is the source code for the radio buttons and the continue button (click to expand):
These actions are clearly JavaScript driven. Since (correct me if I'm wrong about this) requests
cannot carry out JavaScript commands, it looks like we need to look at another package like selenium
to do this for us.
Here is the website for quick access (you might need to login)
What do you think should be done?
I've used BeautifulSoup in the past for scraping webpages and it really helps clean up the code for something larger like this. It's a jQuery like style of extracting data, and seems a little less error prone then just plain string parsing. Might be a good fit for this project
The method info() is not working. Perhaps this is because CU changed the way they display user information, here is the error I get when running this code.
Note: This works fine when I use the classes() method.
loginUser = mycuinfo.CUSession(user, password)
userinfo = loginUser.info()
Traceback (most recent call last):
File "/Users/<>/PycharmProjects/untitled/main", line 19, in
main()
File "/Users/<>/PycharmProjects/untitled/main", line 10, in main
userinfo = loginUser.info()
File "/usr/local/lib/python2.7/site-packages/mycuinfo/cusession.py", line 149, in info
name = item.split('<')[1].split('>')[0]
IndexError: list index out of range
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.