Code Monkey home page Code Monkey logo

mycuinfo-api's People

Contributors

aparav avatar biw avatar mguida22 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

mycuinfo-api's Issues

Doesn't work with student who are in academic suspension

My friend fails courses during freshmen year and are taking special course this semester. The schedule in mycuinfo looks like this:
a0f5f26f-66e2-4b7a-954f-1b9496d7417e

This fails python with a error

      tempClass["startTime"] = dateAndTime[1].split("<")[0]
 IndexError: list index out of range

Init of CUSession not working at all

I get this error
line 25, in __init__ 1].split('"')[0] IndexError: list index out of range
when trying to create the CUSession class. It seems like the html is for this error page.
image

Updates and maintenance

Hey,

Are you still actively maintaining (and updating) the API and accepting pull requests with new features?

~Apara (fellow CU student)

CUSession.GPA() no longer works

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):
image

And this is the source code for the radio buttons and the continue button (click to expand):
image
image

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?

use BeautifulSoup for html parsing

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

info method

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.