posting_zon 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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/posting_zon.rb +8 -7
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 32e7e6e3eec3266844140dae770b3a6f2c4dc921c7a49217d428525553d56e0f
4
- data.tar.gz: a760148ab99d7913ab29ffa6311a244dafb39944319f308de30dbaad56cd39a6
3
+ metadata.gz: fa2533bb6288331d2e9f17bd3d42e197b0d65bbdff799764aff55aae382983e5
4
+ data.tar.gz: 14557a4859bb61806f99018823ea7ed81e91a2865735e94b762a152ab62598e0
5
5
  SHA512:
6
- metadata.gz: da505f0712967cd337b43aa37b728e1d3f33fbd289e48e8c878bde70d1353fd037b546f2ee20df978711bd02820c9cfa5c51ebbe52da7881340a41ba359ca0a6
7
- data.tar.gz: bcccf4281df69f6fa723b44c5964bc509681b587c17c32593fb70c2cce8149418a367175c159c091dd19cc0d34397f45adf19b563788106a7755c9c3c6a21de0
6
+ metadata.gz: d14a0bfee39a1eaa4cf68ade7c3baac863ea5d5d4778461cb01ef9557c5ff445f239da379a07b7ca7df9b24304bfb336156a714b1b9d6ebbba893585452fa7d7
7
+ data.tar.gz: fe2be34f9dc2633fb2ea22e422a14134972fb704d61c5aa5ffd7471a901e40f634c345e710e59b88965f5c7f0659b4bdb504bfe681ee8704952dadfd5be59e82
data/lib/posting_zon.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에서 샌드박스 모드를 비활성화합니다.
@@ -144,7 +141,6 @@ class Naver
144
141
  end
145
142
  end
146
143
 
147
-
148
144
 
149
145
 
150
146
  def login(proxy)
@@ -8652,10 +8648,15 @@ class Wordpress
8652
8648
 
8653
8649
  @captcha_key = captcha_key
8654
8650
  begin
8655
- Selenium::WebDriver::Chrome::Service.driver_path = './chromedriver.exe'
8656
- @driver = Selenium::WebDriver.for :chrome
8651
+ capabilities = [options]
8652
+
8653
+ # 드라이버 초기화 (capabilities 사용)
8654
+ @driver = Selenium::WebDriver.for(:chrome, capabilities: capabilities)
8657
8655
  rescue
8658
- @driver = Selenium::WebDriver.for :chrome
8656
+ capabilities = [options]
8657
+
8658
+ # 드라이버 초기화 (capabilities 사용)
8659
+ @driver = Selenium::WebDriver.for(:chrome, capabilities: capabilities)
8659
8660
  end
8660
8661
  end
8661
8662
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: posting_zon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - zon