Comments (2)
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from antscoper.