rakuten_securities_scraper 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af1bd8cc0abba9b3116e6636a63ca1c2e8444cef3dcd235302bdf42eb7dd6836
4
- data.tar.gz: a9a10da8d97ce4988b601bc9fcf75329e6782a865636478f679fe0751d582060
3
+ metadata.gz: c89e229d3f5d6d0a4bb8251ae3b37da48e757d30d5af5b0779c15971c8e9fde9
4
+ data.tar.gz: de43414a5ee1bfd482bcd2780631fbcccf5f6eec9a84ae7c4d635669e95117ee
5
5
  SHA512:
6
- metadata.gz: 74b63aebc080956c50f098e7bf699ceb19f8b0699b701f1e20aeaafd3361ef7c0ef266ae6fd5442944980ffa83fd007400c9383af2c61e9dea27b0fd964f1c75
7
- data.tar.gz: '0961d672f7f487d62464a3a2a4ce16adb04bcd6ddc7f7e53b640b24a7dcefbb49795196db45f814e7593c14e9ef2a5caf144430e8b422c44f58b779e2f449813'
6
+ metadata.gz: fa1fbdd5436ca3397ac430aeeb741c909f439f99c2feff0a5a6b291bfb2b5eef1f86c977188f1f13dac5d50b37f936ded01a51dc720e34e0c2575a0be3818ce0
7
+ data.tar.gz: 1a57887eda7e18fe83c79e1ebf51cdb02b828eb0df1a8b20c2b5d790077841661b865d82cca2d470af39ec6615d33be9b417aba45d9de33253751b726a4d4e4f
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rakuten_securities_scraper (0.1.5)
4
+ rakuten_securities_scraper (0.1.6)
5
5
  selenium-webdriver (~> 3.142.7)
6
6
 
7
7
  GEM
@@ -34,12 +34,13 @@ module RakutenSecuritiesScraper
34
34
  sleep 2
35
35
  driver.find_element(name: "editAnchor").click
36
36
  sleep 2
37
- driver.find_element(name: "addAnchor").click
38
- sleep 1
39
- driver.switch_to.frame driver.find_element(:id, "TB_iframeContent")
40
37
  codes.each do |code|
41
- result = click_favorite driver, code
42
- next if result == "already exist"
38
+ driver.find_element(name: "addAnchor").click
39
+ sleep 1
40
+ driver.switch_to.frame driver.find_element(:id, "TB_iframeContent")
41
+ result = click_favorite driver, code.to_s
42
+ sleep 1
43
+ puts "hey" if result == "already exist"
43
44
  end
44
45
  driver.find_element(id: "prc_save_button1").click
45
46
  { status: "success" }
@@ -292,7 +293,7 @@ module RakutenSecuritiesScraper
292
293
  options.add_argument("--disable-popup-blocking")
293
294
  options.add_argument("--disable-translate")
294
295
  options.add_argument("-headless")
295
- Selenium::WebDriver.for :chrome # , options: options
296
+ Selenium::WebDriver.for :chrome, options: options
296
297
  end
297
298
  end
298
299
  end
@@ -1,3 +1,3 @@
1
1
  module RakutenSecuritiesScraper
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rakuten_securities_scraper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - FUMI-POPPIN