posting_zon 0.0.73 → 0.0.77
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_zon.rb +112 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c5a3b38e817832ddcb65212a3b5bc281b89c03183644a66efc574c57f614680
|
4
|
+
data.tar.gz: 44a8d7af5ec2ca5463a98c7e080642c9e21a9de83e81c78bb234b2752e64ca16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84eab2177ba3fcc07743b356acc798107b0a4070c97fbd7b03c9627d2518a2902cd0728fe790ae60a595a9c0bdaa773ab57a04c065ed41f2b5271847cfc46029
|
7
|
+
data.tar.gz: e0ae3b7d9fc866bf8a0436945cf4b6c4d9785fdc32b12fcf37d7c6f500d1f12bd259e56eaa3124cf5a27d26a023822422fdd3e87f98d89824dfae25a2d534172
|
data/lib/posting_zon.rb
CHANGED
@@ -86,6 +86,15 @@ class Naver
|
|
86
86
|
options.add_argument('--disable-save-password-bubble') # 비밀번호 저장 팝업 비활성화
|
87
87
|
options.add_argument('--disable-password-manager') # 비밀번호 관리 비활성화
|
88
88
|
|
89
|
+
|
90
|
+
options.add_argument('--disable-web-security') # 웹 보안 비활성화
|
91
|
+
options.add_argument('--allow-running-insecure-content') # HTTPS 사이트에서 HTTP 컨텐츠 실행 허용
|
92
|
+
options.exclude_switches = ['enable-automation'] # 자동화 테스트 제거
|
93
|
+
options.add_preference("profile.password_manager_enabled", false) # 비밀번호 관리자 비활성화
|
94
|
+
options.add_preference("credentials_enable_service", false) # 비밀번호 저장 기능 비활성화
|
95
|
+
options.add_preference("profile.default_content_setting_values.notifications", 2) # 알림 차단
|
96
|
+
options.add_argument('--disable-software-rasterizer') # 소프트웨어 렌더링 비활성화
|
97
|
+
|
89
98
|
|
90
99
|
# 'capabilities'과 'options' 배열로 설정
|
91
100
|
capabilities = Selenium::WebDriver::Remote::Capabilities.chrome
|
@@ -117,6 +126,15 @@ class Naver
|
|
117
126
|
options.add_argument('--remote-debugging-port=9222')
|
118
127
|
options.add_argument('user-data-dir=C:/board_cookie')
|
119
128
|
|
129
|
+
options.add_argument('--disable-web-security') # 웹 보안 비활성화
|
130
|
+
options.add_argument('--allow-running-insecure-content') # HTTPS 사이트에서 HTTP 컨텐츠 실행 허용
|
131
|
+
options.exclude_switches = ['enable-automation'] # 자동화 테스트 제거
|
132
|
+
options.add_preference("profile.password_manager_enabled", false) # 비밀번호 관리자 비활성화
|
133
|
+
options.add_preference("credentials_enable_service", false) # 비밀번호 저장 기능 비활성화
|
134
|
+
options.add_preference("profile.default_content_setting_values.notifications", 2) # 알림 차단
|
135
|
+
options.add_argument('--disable-software-rasterizer') # 소프트웨어 렌더링 비활성화
|
136
|
+
|
137
|
+
|
120
138
|
|
121
139
|
# 'capabilities'과 'options' 배열로 설정
|
122
140
|
capabilities = Selenium::WebDriver::Remote::Capabilities.chrome
|
@@ -145,6 +163,15 @@ class Naver
|
|
145
163
|
options.add_argument('--remote-debugging-port=9222')
|
146
164
|
options.add_argument('user-data-dir=C:/board_cookie')
|
147
165
|
|
166
|
+
options.add_argument('--disable-web-security') # 웹 보안 비활성화
|
167
|
+
options.add_argument('--allow-running-insecure-content') # HTTPS 사이트에서 HTTP 컨텐츠 실행 허용
|
168
|
+
options.exclude_switches = ['enable-automation'] # 자동화 테스트 제거
|
169
|
+
options.add_preference("profile.password_manager_enabled", false) # 비밀번호 관리자 비활성화
|
170
|
+
options.add_preference("credentials_enable_service", false) # 비밀번호 저장 기능 비활성화
|
171
|
+
options.add_preference("profile.default_content_setting_values.notifications", 2) # 알림 차단
|
172
|
+
options.add_argument('--disable-software-rasterizer') # 소프트웨어 렌더링 비활성화
|
173
|
+
|
174
|
+
|
148
175
|
|
149
176
|
|
150
177
|
# 'capabilities'과 'options' 배열로 설정
|
@@ -5932,7 +5959,17 @@ begin
|
|
5932
5959
|
@driver.find_element(:xpath, '//*[@for="boardPrivacyCheck"]').click
|
5933
5960
|
sleep(1)
|
5934
5961
|
rescue
|
5935
|
-
|
5962
|
+
begin
|
5963
|
+
@driver.find_element(:xpath, '//*[@for="checkbox-nonMember"]').click
|
5964
|
+
sleep(1)
|
5965
|
+
rescue
|
5966
|
+
begin
|
5967
|
+
@driver.find_element(:xpath, '//*[@name="agree_chk"]').click
|
5968
|
+
sleep(1)
|
5969
|
+
rescue
|
5970
|
+
|
5971
|
+
end
|
5972
|
+
end
|
5936
5973
|
end
|
5937
5974
|
end
|
5938
5975
|
end
|
@@ -8181,7 +8218,28 @@ if check_captcha == 0
|
|
8181
8218
|
sleep(1)
|
8182
8219
|
puts '-[√] 캡챠 코드 타겟 완료1.......'.blue
|
8183
8220
|
rescue
|
8184
|
-
|
8221
|
+
begin
|
8222
|
+
@driver.switch_to.default_content()
|
8223
|
+
el = @driver.find_element(:xpath, '//*[@id="zsfImg"]')
|
8224
|
+
puts '-[√] 캡챠 발견!! 캡차 해제를 위한 환경설정 약 10초 소요.......'.red
|
8225
|
+
puts '-[√] 챕챠 해제 중~ 해제 완료까지 마우스 움직이지 마세요.......'.red
|
8226
|
+
puts '-[√] 챕챠 코드 code 12.......'.red
|
8227
|
+
sleep(1)
|
8228
|
+
@driver.execute_script("arguments[0].scrollIntoView({behavior: 'smooth', block: 'center', inline: 'center'});", el) # 화면 가운데
|
8229
|
+
sleep(1)
|
8230
|
+
mouse_move_percentage(0.3,0.02)
|
8231
|
+
sleep(0.5)
|
8232
|
+
left_click
|
8233
|
+
sleep(1)
|
8234
|
+
@driver.switch_to.window(@driver.window_handle) #핸들 주입
|
8235
|
+
@driver.action.context_click(el).perform #우 클릭
|
8236
|
+
sleep(1)
|
8237
|
+
@driver.action.key_down(:shift).key_stroke('m').key_up(:shift).perform #단축키
|
8238
|
+
sleep(1)
|
8239
|
+
puts '-[√] 캡챠 코드 타겟 완료1.......'.blue
|
8240
|
+
rescue
|
8241
|
+
|
8242
|
+
end
|
8185
8243
|
end
|
8186
8244
|
end
|
8187
8245
|
end
|
@@ -8751,7 +8809,46 @@ if check_captcha == 0
|
|
8751
8809
|
puts '-[√] 캡챠 코드 타겟 완료2.......'.blue
|
8752
8810
|
sleep(1)
|
8753
8811
|
rescue
|
8754
|
-
|
8812
|
+
begin
|
8813
|
+
@driver.switch_to.default_content()
|
8814
|
+
sleep(1)
|
8815
|
+
@driver.find_element(:xpath, '//*[@id="zsfCode"]').click
|
8816
|
+
|
8817
|
+
sleep(1)
|
8818
|
+
|
8819
|
+
el2 = @driver.find_element(:xpath, '//*[@id="zsfCode"]')
|
8820
|
+
@driver.action.context_click(el2).perform
|
8821
|
+
|
8822
|
+
sleep(1)
|
8823
|
+
@driver.action.key_stroke('up')
|
8824
|
+
sleep(1)
|
8825
|
+
@driver.action.key_stroke('up')
|
8826
|
+
sleep(1)
|
8827
|
+
@driver.action.key_stroke('enter')
|
8828
|
+
sleep(1)
|
8829
|
+
begin
|
8830
|
+
# 요소 찾기 타임아웃을 7초로 설정
|
8831
|
+
wait = Selenium::WebDriver::Wait.new(:timeout => 7)
|
8832
|
+
#요소가 나타날 때까지 7초 동안 기다립니다.
|
8833
|
+
wait.until { @driver.find_element(:xpath, '//*[@class="captcha-solver captcha-solver_inner"]') }
|
8834
|
+
rescue
|
8835
|
+
sleep(1)
|
8836
|
+
@driver.action.key_stroke('left')
|
8837
|
+
sleep(1)
|
8838
|
+
@driver.action.key_stroke('up')
|
8839
|
+
sleep(1)
|
8840
|
+
@driver.action.key_stroke('enter')
|
8841
|
+
sleep(1)
|
8842
|
+
# 요소 찾기 타임아웃을 7초로 설정
|
8843
|
+
wait = Selenium::WebDriver::Wait.new(:timeout => 7)
|
8844
|
+
#요소가 나타날 때까지 7초 동안 기다립니다.
|
8845
|
+
wait.until { @driver.find_element(:xpath, '//*[@class="captcha-solver captcha-solver_inner"]') }
|
8846
|
+
end
|
8847
|
+
puts '-[√] 캡챠 코드 타겟 완료2.......'.blue
|
8848
|
+
sleep(1)
|
8849
|
+
rescue
|
8850
|
+
|
8851
|
+
end
|
8755
8852
|
end
|
8756
8853
|
end
|
8757
8854
|
end
|
@@ -9192,7 +9289,16 @@ rescue
|
|
9192
9289
|
sleep(5)
|
9193
9290
|
|
9194
9291
|
rescue
|
9195
|
-
|
9292
|
+
begin
|
9293
|
+
ss_button = @driver.find_element(:xpath, '//*[@class="btn btn_point"]')
|
9294
|
+
@driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", ss_button)
|
9295
|
+
sleep(1)
|
9296
|
+
|
9297
|
+
@driver.find_element(:xpath, '//*[@class="btn btn_point"]').click
|
9298
|
+
puts '-[√] 등록을 28번 코드로 시도하였습니다.......'.magenta
|
9299
|
+
sleep(5)
|
9300
|
+
|
9301
|
+
rescue
|
9196
9302
|
|
9197
9303
|
########─────────────────────────────▼▼▼▼▼▼▼ 등록버튼 2차 시도 ▼▼▼▼▼▼▼──────────────────────────────#######
|
9198
9304
|
begin
|
@@ -9390,7 +9496,7 @@ rescue
|
|
9390
9496
|
########─────────────────────────────▲▲▲▲▲▲▲ 등록버튼 2차 시도 ▲▲▲▲▲▲▲──────────────────────────────#######
|
9391
9497
|
|
9392
9498
|
|
9393
|
-
|
9499
|
+
end
|
9394
9500
|
end
|
9395
9501
|
end
|
9396
9502
|
end
|
@@ -9519,6 +9625,7 @@ end
|
|
9519
9625
|
|
9520
9626
|
|
9521
9627
|
|
9628
|
+
|
9522
9629
|
class Wordpress
|
9523
9630
|
include Glimmer
|
9524
9631
|
def get_mac_address
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: posting_zon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.77
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- zon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: posting app
|
14
14
|
email: mymin26@naver.com
|