This handy little script will download all your coursework in a jip
youll need php 5 and mod php_curl!
selectedCourse = $course;
}
if( count($modules) > 0 )
{
$this->selectedModules = $modules;
}
$this->fetchCourses();
}
private function fetchCourses()
{
echo "Start\n";
$this->downloader = curl_init();
curl_setopt( $this->downloader , CURLOPT_URL , "http://www.csis.ul.ie/currentstudents/" );
curl_setopt( $this->downloader , CURLOPT_USERAGENT , "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.4pre) Gecko/20090829 Ubuntu/9.04 (jaunty) Shiretoko/3.5.4pre" );
curl_setopt( $this->downloader , CURLOPT_TIMEOUT , '10' );
curl_setopt( $this->downloader , CURLOPT_FOLLOWLOCATION , 1 );
curl_setopt( $this->downloader , CURLOPT_RETURNTRANSFER , 1 );
$this->store = curl_exec( $this->downloader );
curl_close( $this->downloader );
echo "Got courses\n";
$data = explode( "UNDERGRADUATE COURSES" , $this->store );
$data = explode( "
It’s awesome but if you try to copy and paste it the line numbers are included. Had to stop the page mid-load so that it didn’t load that code viewer widget in order to copy it.
Any chance of a source link? I don’t think most people will bother deleting the numbers. 😀
hey up at the top of the code on the right hand side are four little icons
Click on the one on the left 🙂