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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rakuten_securities_scraper.rb +7 -6
- data/lib/rakuten_securities_scraper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c89e229d3f5d6d0a4bb8251ae3b37da48e757d30d5af5b0779c15971c8e9fde9
|
4
|
+
data.tar.gz: de43414a5ee1bfd482bcd2780631fbcccf5f6eec9a84ae7c4d635669e95117ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa1fbdd5436ca3397ac430aeeb741c909f439f99c2feff0a5a6b291bfb2b5eef1f86c977188f1f13dac5d50b37f936ded01a51dc720e34e0c2575a0be3818ce0
|
7
|
+
data.tar.gz: 1a57887eda7e18fe83c79e1ebf51cdb02b828eb0df1a8b20c2b5d790077841661b865d82cca2d470af39ec6615d33be9b417aba45d9de33253751b726a4d4e4f
|
data/Gemfile.lock
CHANGED
@@ -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
|
-
|
42
|
-
|
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
|
296
|
+
Selenium::WebDriver.for :chrome, options: options
|
296
297
|
end
|
297
298
|
end
|
298
299
|
end
|