Skip to content

Kiwi-Learn/kiwi-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kiwi-scraper

Build Status Gem Version

Kiwi Scraper is a great tool to get Sharecourse information!

Yes, you can use CLI to browse course information even you are offline!!

We respect Sharecourse's robots.txt

Usage

Install it with the following command:

$ gem install kiwicourse

Run it from the command line. We provide 5 features to you to browse courses information on Sharecourse.

  • list
  • search
  • info
  • open
  • update

Help

$ kiwicourse
Commands:
  kiwicourse help [COMMAND]     # Describe available commands or one specific command
  kiwicourse info ID            # Display information about course.
  kiwicourse list               # List all courses on ShareCourse
  kiwicourse open ID            # Open the course page on browser with course id
  kiwicourse search COURSENAME  # Search a course on ShareCourse
  kiwicourse update             # Update the offline courses data

List all courses on Sharecourse

$ kiwicourse list
MA02004 - 會計學原理
AO35004 - 行動磨課師【曠世名琴訴說的故事】
DM91002 - 方法對了,人人都可以是設計師

...

CS01001 - 網路安全 Network Security
CS01002 - 作業系統 Operating Systems
EE62002 - 小型風力機系統與國際認證 (104 秋季班)

Search a course with a keyword

$ kiwicourse search 會計
MA02004 - 會計學原理

Display information about the course.

$ kiwicourse info CS06001
Course ID: CS06001
Course: 資料結構
Course time: 2014-09-14 - 2015-02-28
Course webpage: http://www.sharecourse.net/sharecourse/course/view/courseInfo/28

Open the course webpage in browser

$ kiwicourse open MA02004

Update the offline courses data

$ kiwicourse update
Already up to date.

Use it from your Ruby code:

require 'kiwicourse'
sc = KiwiScraper::ShareCourse.new

course_found = sc.course_name
puts course_found

url_found = sc.course_url
puts url_found

Run the tests

Using rake to run tests. If you don't have rake using gem install rake to install it.

$ rake spec

About

A courses scraper scrape courses information to all kiwiers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages