Live data from Hacker News

bb: Command line Blackboard client/scraper

github.com

11–18 of 18 posts

Re: bb: Command line Blackboard client/scraper

#11
post #8

It is a (rare) pleasure to see a simple solution posted to HN that does not require Python or some other scripting language. Or GNU sed for that matter. I no longer have a Blackboard account, but if I did, or had a guest account to play with, I would try rewriting your Bash script in POSIX-like sh. Nice work and a good choice of project.

It actually does require sed, and either python or openssl.

"Requirements

bash curl sed openssl or python"

Re: bb: Command line Blackboard client/scraper

#14

My University (the University of Aberdeen) uses Blackboard, I wonder if it mightn't be less horrible than the web interface.

It could be worse. It could be one of the many buggy, insecure home-grown solutions RGU has used in the past.

AFAIK they use Moodle now and it's leaps and bound better (more reliable, more secure, easier to use) than any of the previous solutions.

Re: bb: Command line Blackboard client/scraper

#15

My University (the University of Aberdeen) uses Blackboard, I wonder if it mightn't be less horrible than the web interface.

University of Aberdeen alumni here, do they still use the awful portal for timetables? I got half way through writing an Android app for parsing it and displaying it in a clearer way last year.

Re: bb: Command line Blackboard client/scraper

#16

My University (the University of Aberdeen) uses Blackboard, I wonder if it mightn't be less horrible than the web interface.

University of Aberdeen alumni here, do they still use the awful portal for timetables? I got half way through writing an Android app for parsing it and displaying it in a clearer way last year.

I'm not sure if I'm familiar with the system you refer to, apparently they overhauled everything recently, and I'm a fresher.

Re: bb: Command line Blackboard client/scraper

#17
post #8

It is a (rare) pleasure to see a simple solution posted to HN that does not require Python or some other scripting language. Or GNU sed for that matter. I no longer have a Blackboard account, but if I did, or had a guest account to play with, I would try rewriting your Bash script in POSIX-like sh. Nice work and a good choice of project.

Yes, the bash script could be made more portable. Also there are some GNU-specific sed features used, but I'm sure that could be changed to be more portable as well. Python or openssl is used for some base64 encoding.

I like using shell scripts for projects like this because of the power of piping commands/functions and doing line-based processing with e.g. sed.

Re: bb: Command line Blackboard client/scraper

#18
post #8

It is a (rare) pleasure to see a simple solution posted to HN that does not require Python or some other scripting language. Or GNU sed for that matter. I no longer have a Blackboard account, but if I did, or had a guest account to play with, I would try rewriting your Bash script in POSIX-like sh. Nice work and a good choice of project.

It actually does require sed, and either python or openssl. "Requirements bash curl sed openssl or python"

"GNU sed" has "features" not always found in all other sed's elsewhere, outside of GNU/Linux.

You can substitute other tcp clients for curl.

And the openssl binary is ubiquitous, so he is smart to use it for generating base64 versus other userland utilities for generating base64 that are not always found outside of GNU/Linux.

Post reply on HN