posting_duo 3.111.013 → 3.111.015
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 +31 -3
- 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: 81295a0e87e8a76001be3090d2ec74aa83f0f21e64d5d70f85a29c1dd79d4d14
|
4
|
+
data.tar.gz: 36ef08afc8fbf565ca977e0504e5cea873dd773ef3878a29422dfbad29fd97c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4f9e858c3a4a20408d9920dac005ae45d05a74af0cf1f779a8ef11c3426cc7825e73b64ef0aea38d39838d23a27af4b22496aa09149ec9ee9fd9fe94de05df5
|
7
|
+
data.tar.gz: fff1cf0c5dadcc8effd6ca1a987f9a5b235dc7d8a643dfcab3a038ad2ca6e0ecd553d97c2014c8fb944d5c24f3e779adfb181abccd9b6d92c2dd3e9ae5c01074
|
data/lib/posting_duo.rb
CHANGED
@@ -7436,6 +7436,18 @@ begin
|
|
7436
7436
|
@driver.close
|
7437
7437
|
end
|
7438
7438
|
|
7439
|
+
|
7440
|
+
begin #셀클럽 카테고리 2차 타겟
|
7441
|
+
@driver.find_element(:xpath, '//*[@name="ext6_00" and @itemname="등록분류"]').click
|
7442
|
+
puts '-[√] 셀클럽 2차 카테고리 확인!! 자동 선택 진행.......'.red
|
7443
|
+
sleep(1)
|
7444
|
+
@driver.action.key_down(:down).key_up(:down).perform
|
7445
|
+
sleep(1)
|
7446
|
+
@driver.action.key_down(:enter).key_up(:enter).perform
|
7447
|
+
sleep(1)
|
7448
|
+
rescue
|
7449
|
+
end
|
7450
|
+
|
7439
7451
|
##<─────────────────────────────────────────────────────────────────────카테고리 선택 코드 부분
|
7440
7452
|
|
7441
7453
|
|
@@ -8037,7 +8049,21 @@ end
|
|
8037
8049
|
|
8038
8050
|
begin
|
8039
8051
|
#아이프레임에서 코드 선택
|
8040
|
-
|
8052
|
+
# 1. 모든 scrolling="no" iframe 수집
|
8053
|
+
iframes = @driver.find_elements(:xpath, '//iframe[@scrolling="no"]')
|
8054
|
+
|
8055
|
+
# 2. 제외할 iframe id 또는 name 리스트
|
8056
|
+
blacklist = ["loginiframe", "ad_iframe", "popupiframe"]
|
8057
|
+
|
8058
|
+
# 3. 걸러낸 iframe 중 첫 번째 유효한 iframe 선택
|
8059
|
+
target_iframe = iframes.find do |frame|
|
8060
|
+
id = frame.attribute("id")
|
8061
|
+
name = frame.attribute("name")
|
8062
|
+
!blacklist.include?(id) && !blacklist.include?(name)
|
8063
|
+
end
|
8064
|
+
|
8065
|
+
# 4. 해당 iframe으로 전환
|
8066
|
+
@driver.switch_to.frame(target_iframe)
|
8041
8067
|
|
8042
8068
|
html_bb = @driver.find_element(:xpath, '//*[@class="se2_to_html"]')
|
8043
8069
|
@driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", html_bb)
|
@@ -12132,8 +12158,8 @@ sleep(1)
|
|
12132
12158
|
rescue
|
12133
12159
|
begin
|
12134
12160
|
ss_button = @driver.find_element(:xpath, '//*[@type="submit"]')
|
12135
|
-
if ss_button.attribute("class") == "upload_btn1"
|
12136
|
-
raise
|
12161
|
+
if ss_button.attribute("class") == "upload_btn1" || ss_button.attribute("class") == "btn btn-default"
|
12162
|
+
raise
|
12137
12163
|
end
|
12138
12164
|
|
12139
12165
|
@driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", ss_button)
|
@@ -12434,6 +12460,7 @@ ss_button = @driver.find_element(xpath: '//img[contains(@src, "btn_write.gif")]'
|
|
12434
12460
|
puts '-[√] 등록을 54번 코드로 시도하였습니다.......'.magenta
|
12435
12461
|
sleep(1)
|
12436
12462
|
'//button[@type="submit" and contains(@class, "kboard-default-button-small") and contains(text(), "저장하기")]'
|
12463
|
+
|
12437
12464
|
rescue
|
12438
12465
|
begin
|
12439
12466
|
ss_button = @driver.find_element(xpath: '//button[@type="submit" and contains(@class, "kboard-default-button-small") and contains(text(), "저장하기")]')
|
@@ -12444,6 +12471,7 @@ ss_button = @driver.find_element(xpath: '//button[@type="submit" and contains(@c
|
|
12444
12471
|
puts '-[√] 등록을 55번 코드로 시도하였습니다.......'.magenta
|
12445
12472
|
sleep(1)
|
12446
12473
|
|
12474
|
+
|
12447
12475
|
rescue
|
12448
12476
|
########─────────────────────────────▼▼▼▼▼▼▼ 등록버튼 2차 시도 ▼▼▼▼▼▼▼──────────────────────────────#######
|
12449
12477
|
begin
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: posting_duo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.111.
|
4
|
+
version: 3.111.015
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- zon
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-07-
|
10
|
+
date: 2025-07-03 00:00:00.000000000 Z
|
11
11
|
dependencies: []
|
12
12
|
description: File to Clipboard gem
|
13
13
|
email: mymin26@naver.com
|