posting_duo 0.0.15 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/posting_duo.rb +8 -6
- 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: 9b9e411e548464a850454e02440fccb5a2d7f67b866bffbbdc46a1ac3f20f9bc
|
4
|
+
data.tar.gz: 5ba9da662720c4d9da54cab9d4220943777f5971aa0b89fa5721aea9cddbe14c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09c2b6285ddc744a9292fd48e5dd60af83828d643e4874d671872bda19018bdf1729958b9a73c77880fd58187282688c6069bbb1c2dc014a5583fe3b31149f93'
|
7
|
+
data.tar.gz: ce594d9bf2ca3890e9a6dae713ac39528e400e05d57e59692a5d8e77e5182e07939b08d98c727e03a1eab1af204189aafe42b5790b5610356d2a3c9aa9108ac6
|
data/lib/posting_duo.rb
CHANGED
@@ -44,7 +44,6 @@ class Naver
|
|
44
44
|
options.add_argument('user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.6723.59 Safari/537.36') # user-agent 위조
|
45
45
|
options.add_argument('--disable-blink-features=AutomationControlled') #자동화된 환경에서 실행되는 것을 감지하는 기능을 비활성화합니다.
|
46
46
|
options.add_argument('--ignore-certificate-errors') #SSL 인증서 오류를 무시하도록 설정합니다
|
47
|
-
options.excludeSwitches('--enable-automation') #자동화된 테스트...제거
|
48
47
|
options.add_argument('--disable-web-security') #웹 보안을 비활성화합니다
|
49
48
|
options.add_argument('--allow-running-insecure-content') #HTTPS 사이트에서 HTTP 컨텐츠를 실행할 수 있도록 허용합니다.
|
50
49
|
options.add_argument('--no-sandbox') #Chrome에서 샌드박스 모드를 비활성화합니다.
|
@@ -85,7 +84,6 @@ class Naver
|
|
85
84
|
options.add_argument('user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.6723.59 Safari/537.36') # user-agent 위조
|
86
85
|
options.add_argument('--disable-blink-features=AutomationControlled') #자동화된 환경에서 실행되는 것을 감지하는 기능을 비활성화합니다.
|
87
86
|
options.add_argument('--ignore-certificate-errors') #SSL 인증서 오류를 무시하도록 설정합니다
|
88
|
-
options.excludeSwitches('--enable-automation') #자동화된 테스트...제거
|
89
87
|
options.add_argument('--disable-web-security') #웹 보안을 비활성화합니다
|
90
88
|
options.add_argument('--allow-running-insecure-content') #HTTPS 사이트에서 HTTP 컨텐츠를 실행할 수 있도록 허용합니다.
|
91
89
|
options.add_argument('--no-sandbox') #Chrome에서 샌드박스 모드를 비활성화합니다.
|
@@ -115,7 +113,6 @@ class Naver
|
|
115
113
|
options.add_argument('user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.6723.59 Safari/537.36') # user-agent 위조
|
116
114
|
options.add_argument('--disable-blink-features=AutomationControlled') #자동화된 환경에서 실행되는 것을 감지하는 기능을 비활성화합니다.
|
117
115
|
options.add_argument('--ignore-certificate-errors') #SSL 인증서 오류를 무시하도록 설정합니다
|
118
|
-
options.excludeSwitches('--enable-automation') #자동화된 테스트...제거
|
119
116
|
options.add_argument('--disable-web-security') #웹 보안을 비활성화합니다
|
120
117
|
options.add_argument('--allow-running-insecure-content') #HTTPS 사이트에서 HTTP 컨텐츠를 실행할 수 있도록 허용합니다.
|
121
118
|
options.add_argument('--no-sandbox') #Chrome에서 샌드박스 모드를 비활성화합니다.
|
@@ -8722,10 +8719,15 @@ class Wordpress
|
|
8722
8719
|
|
8723
8720
|
@captcha_key = captcha_key
|
8724
8721
|
begin
|
8725
|
-
|
8726
|
-
|
8722
|
+
capabilities = [options]
|
8723
|
+
|
8724
|
+
# 드라이버 초기화 (capabilities 사용)
|
8725
|
+
@driver = Selenium::WebDriver.for(:chrome, capabilities: capabilities)
|
8727
8726
|
rescue
|
8728
|
-
|
8727
|
+
capabilities = [options]
|
8728
|
+
|
8729
|
+
# 드라이버 초기화 (capabilities 사용)
|
8730
|
+
@driver = Selenium::WebDriver.for(:chrome, capabilities: capabilities)
|
8729
8731
|
end
|
8730
8732
|
end
|
8731
8733
|
|