lib/points-scraper/tpoint.rb in points-scraper-0.1.0 vs lib/points-scraper/tpoint.rb in points-scraper-0.1.1
- old
+ new
@@ -12,9 +12,11 @@
class TPoint < Default
URL = 'https://tsite.jp'
def start
start_scrape do |agent|
+ agent.open_timeout = 3
+
agent.get( URL + '/tm/pc/login/STKIp0001001.do' )
agent.page.form_with( :name => 'form1' ) do |form|
form.action = URL + '/tm/pc/login/STKIp0001010.do'
form['LOGIN_ID'] = @user