Project

sfcsfs

0.0
No commit activity in last 3 years
No release in over 3 years
SFC-SFS Scraping Library
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
~> 2.10.0

Runtime

~> 2.2.8
~> 1.5.5
>= 0
 Project Readme

SFCSFS

SFCSFS is a SFC-SFS Scraping Library. SFC-SFS is an internal website for Keio Univ. Shounan Fujisawa Campus.

Installation

Add this line to your application's Gemfile:

gem 'sfcsfs'

And then execute:

$ bundle

Or install it yourself as:

$ gem install sfcsfs

Usage

config = Pit.get("sfcsfs", :require => {
    :account  => "your CNS account",
    :password => "your CNS password"
})

# Login to SFC-SFS
agent = SFCSFS.login(config[:account],config[:password])

# Get all classes of this semester and shows
	# It takes several minutes...
list = agent.all_classes_of_this_semester

# Show name of these
list.each do |e|
  puts e.title
end

# Get your current weekly schedule
list = agent.my_schedule

# Show name of these
list.each do |e|
  puts e.title
end

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request