posting_duo 0.0.7 → 0.0.10
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 +43 -21
- 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: 29556b1cf53a9bfb3a296bebacdf4ced224510c5842a422c55350231df0f26b2
|
4
|
+
data.tar.gz: a559bc1924a89720aa90962abbc7a4cde4870dc83c991fbc61b9499e494728a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4b82a607b64f1719af69e6dcc0d8910799e8b9625c89468ff0d162ccbe39a02c10d0de9f22795027d0b86560bd58781c9ca30d2d722f46d2f36b93e04a5a40a
|
7
|
+
data.tar.gz: 060ac550fcbc630766781d833365e459015e27ee6119b095d69a427b5217e02b336491dd6896c8a9f577b7c3938e78c0419a6992085ff1ff01e32d6b471bde5b
|
data/lib/posting_duo.rb
CHANGED
@@ -3459,54 +3459,60 @@ login_url = option['login_url'].to_s
|
|
3459
3459
|
sleep(3)
|
3460
3460
|
rescue
|
3461
3461
|
begin
|
3462
|
-
@driver.find_element(:xpath, '//*[@
|
3462
|
+
@driver.find_element(:xpath, '//*[@class="btn_blue small btn_wfull"]').click
|
3463
3463
|
puts '-[√] 로그인 버튼 코드 6 타겟.......'.cyan
|
3464
3464
|
sleep(3)
|
3465
3465
|
rescue
|
3466
3466
|
begin
|
3467
|
-
@driver.find_element(:xpath, '//*[@
|
3467
|
+
@driver.find_element(:xpath, '//*[@alt="로그인"]').click
|
3468
3468
|
puts '-[√] 로그인 버튼 코드 7 타겟.......'.cyan
|
3469
3469
|
sleep(3)
|
3470
3470
|
rescue
|
3471
3471
|
begin
|
3472
|
-
@driver.find_element(:xpath, '//*[@id="
|
3472
|
+
@driver.find_element(:xpath, '//*[@id="mb_login"]/form/div[5]/button').click
|
3473
3473
|
puts '-[√] 로그인 버튼 코드 8 타겟.......'.cyan
|
3474
3474
|
sleep(3)
|
3475
3475
|
rescue
|
3476
3476
|
begin
|
3477
|
-
@driver.find_element(:xpath, '//*[@
|
3477
|
+
@driver.find_element(:xpath, '//*[@id="ol_submit"]').click
|
3478
3478
|
puts '-[√] 로그인 버튼 코드 9 타겟.......'.cyan
|
3479
3479
|
sleep(3)
|
3480
3480
|
rescue
|
3481
3481
|
begin
|
3482
|
-
@driver.find_element(:xpath, '//*[@
|
3482
|
+
@driver.find_element(:xpath, '//*[@alt="login"]').click
|
3483
3483
|
puts '-[√] 로그인 버튼 코드 10 타겟.......'.cyan
|
3484
3484
|
sleep(3)
|
3485
3485
|
rescue
|
3486
3486
|
begin
|
3487
|
-
@driver.find_element(:xpath, '//*[@
|
3487
|
+
@driver.find_element(:xpath, '//*[@title="login"]').click
|
3488
3488
|
puts '-[√] 로그인 버튼 코드 11 타겟.......'.cyan
|
3489
3489
|
sleep(3)
|
3490
3490
|
rescue
|
3491
3491
|
begin
|
3492
|
-
@driver.find_element(:xpath, '//*[@id="
|
3492
|
+
@driver.find_element(:xpath, '//*[@id="signIn_1"]').click
|
3493
3493
|
puts '-[√] 로그인 버튼 코드 12 타겟.......'.cyan
|
3494
3494
|
sleep(3)
|
3495
3495
|
rescue
|
3496
3496
|
begin
|
3497
|
-
@driver.find_element(:xpath, '//*[@
|
3498
|
-
puts '-[√] 로그인 버튼 코드
|
3497
|
+
@driver.find_element(:xpath, '//*[@id="btn_login"]').click
|
3498
|
+
puts '-[√] 로그인 버튼 코드 13 타겟.......'.cyan
|
3499
3499
|
sleep(3)
|
3500
3500
|
rescue
|
3501
|
-
|
3502
|
-
|
3501
|
+
begin
|
3502
|
+
@driver.find_element(:xpath, '//*[@name="wp-submit"]').click
|
3503
|
+
puts '-[√] 로그인 버튼 코드 14 타겟.......'.cyan
|
3504
|
+
sleep(3)
|
3505
|
+
rescue
|
3506
|
+
@driver.action.key_down(:enter).key_up(:enter).perform #엔터
|
3507
|
+
sleep(3)
|
3508
|
+
end
|
3503
3509
|
end
|
3504
3510
|
end
|
3505
3511
|
end
|
3506
3512
|
end
|
3507
3513
|
end
|
3508
3514
|
end
|
3509
|
-
end
|
3515
|
+
end
|
3510
3516
|
end
|
3511
3517
|
end
|
3512
3518
|
end
|
@@ -7957,7 +7963,8 @@ end
|
|
7957
7963
|
|
7958
7964
|
|
7959
7965
|
|
7960
|
-
|
7966
|
+
sleep(1)
|
7967
|
+
@driver.action.key_down(:tab).key_up(:tab).perform #x탭
|
7961
7968
|
|
7962
7969
|
|
7963
7970
|
|
@@ -7986,15 +7993,21 @@ rescue
|
|
7986
7993
|
@driver.find_element(:xpath, '//*[@id="html-1"]').click
|
7987
7994
|
sleep(1)
|
7988
7995
|
rescue
|
7989
|
-
|
7996
|
+
begin
|
7997
|
+
@driver.find_element(:xpath, '//*[@title="에디터 타입"]')
|
7998
|
+
sleep(1)
|
7999
|
+
@driver.find_element(:xpath, '//*[@title="에디터 타입"]').click
|
8000
|
+
sleep(1)
|
8001
|
+
rescue
|
8002
|
+
puts '-[√] HTML 버튼 복구 여부 체크 종료.......'.yellow
|
8003
|
+
end
|
7990
8004
|
end
|
7991
8005
|
end
|
7992
8006
|
end
|
7993
8007
|
|
7994
8008
|
|
7995
8009
|
##<─────────────────────────────────────────────────────────────────────캡챠 해제 입력 코드 부분
|
7996
|
-
|
7997
|
-
@driver.action.key_down(:tab).key_up(:tab).perform #x탭
|
8010
|
+
|
7998
8011
|
#@driver.execute_script("document.body.style.zoom = '0.70'")
|
7999
8012
|
sleep(1)
|
8000
8013
|
##등록 버튼 코드 부분─────────────────────────────────────────────────────────────────────>
|
@@ -8207,6 +8220,15 @@ rescue
|
|
8207
8220
|
sleep(5)
|
8208
8221
|
|
8209
8222
|
rescue
|
8223
|
+
begin
|
8224
|
+
@driver.find_element(:xpath, '//*[@class="btn_blue btn_svc write"]').send_keys()
|
8225
|
+
sleep(2)
|
8226
|
+
|
8227
|
+
@driver.find_element(:xpath, '//*[@class="btn_blue btn_svc write"]').click
|
8228
|
+
puts '-[√] 등록을 24번 코드로 시도하였습니다.......'.magenta
|
8229
|
+
sleep(5)
|
8230
|
+
|
8231
|
+
rescue
|
8210
8232
|
|
8211
8233
|
########─────────────────────────────▼▼▼▼▼▼▼ 등록버튼 2차 시도 ▼▼▼▼▼▼▼──────────────────────────────#######
|
8212
8234
|
begin
|
@@ -8397,7 +8419,7 @@ rescue
|
|
8397
8419
|
|
8398
8420
|
|
8399
8421
|
|
8400
|
-
|
8422
|
+
end
|
8401
8423
|
end
|
8402
8424
|
end
|
8403
8425
|
end
|
@@ -9225,9 +9247,9 @@ class Wordpress
|
|
9225
9247
|
counter10 = 0
|
9226
9248
|
while joongbok_check == 0
|
9227
9249
|
if @data['포스트설정']['내용과자동생성'].checked?
|
9228
|
-
|
9250
|
+
content22 = content.split("(자동생성글)")[1].split("\n")
|
9229
9251
|
else
|
9230
|
-
if @data['포스트설정']['내용과자동생성'].checked? == false and @data['포스트설정']['내용을자동생성'].checked? == false and @data['포스트설정']['막글삽입'].checked? ==
|
9252
|
+
if @data['포스트설정']['내용과자동생성'].checked? == false and @data['포스트설정']['내용을자동생성'].checked? == false and @data['포스트설정']['막글삽입'].checked? == false
|
9231
9253
|
snumber = @data['포스트설정']['막글삽입시작숫자'].text.to_s.to_i
|
9232
9254
|
enumber = @data['포스트설정']['막글삽입끝숫자'].text.to_s.to_i
|
9233
9255
|
@data['포스트설정']['막글'] = @data['포스트설정']['막글'].split(' ').shuffle.join(' ')
|
@@ -9236,9 +9258,9 @@ class Wordpress
|
|
9236
9258
|
@data['포스트설정']['막글'] = @data['포스트설정']['막글'].split(' ').shuffle.join(' ')
|
9237
9259
|
@data['포스트설정']['막글'] = @data['포스트설정']['막글'].split(' ').shuffle.join(' ')
|
9238
9260
|
last_text = @data['포스트설정']['막글'][0..rand(snumber..enumber)].split(' ').shuffle.join(' ')
|
9239
|
-
|
9261
|
+
content22 = last_text.split(' ')
|
9240
9262
|
else
|
9241
|
-
|
9263
|
+
content22 = content.split("\n")
|
9242
9264
|
end
|
9243
9265
|
end
|
9244
9266
|
position_point = rand(0..(content22.length-2))
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: posting_duo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- zon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: File to Clipboard gem
|
14
14
|
email: mymin26@naver.com
|