Git Product home page Git Product logo

Comments (2)

Krazete avatar Krazete commented on September 27, 2024

Figured out what went wrong. I remember WebSOC text results being like this:

Art      1C        ART IN CONTEXT
    CCode Typ Sec Unt   Instructor         Time                     Place      Final                      Max      Enr      WL Req Rstr Status 
    01020 LEC A   4     LAFARGE, A.        TuTh         5:00- 6:20p HG 1800    Thu, Jun 12, 4:00-6:00pm    131     131     n/a 333      FULL   

And checking it now, it's like this:

Art      11A       HISTORY CONTEMP ART
    CCode Typ Sec Unt  Instructor         Modality               Time      Place Max    Enr Req  Rstr    Status
    01038 LEC A   4    CARSON, J.         In-Person              Th 1:00- 3:20p ART 160    33   33 62           FULL

The websoc/parse.py script identifies time and place by looking at where Time, Place, and Max is in the table header, expecting everything to be lined up neatly so it could use those indices for the following rows. But they added a new Modality column and neglected to adjust the formatting. With the alignment all screwed up now, my script thinks Art 11A is located at :20p A instead of at ART 160.
I'll have to figure out some other way to parse out time and place.

from antscoper.

Krazete avatar Krazete commented on September 27, 2024

Alright, I fixed the parser problem in 570a5d4.
There was also an issue with my scraper returning "Remote end closed connection without response" (WebSOC probably tightened request limits a bit), so I added a delay in 78d82c2 to fix that.
It should be working properly now. Thank you for the report.

from antscoper.

Related Issues (2)

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.