nblog_duo 0.0.2 → 0.0.3
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/nblog_duo.rb +21 -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: 56427c1c4cb6e4165cad8b3f17815fff3e7a2fcfb85a746d712b69d567a842be
|
4
|
+
data.tar.gz: a281b1676dc6dd9a9431f40e76f93e792a4cf4274a6e799ae00f75b624823938
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 382fe291510807cd8b6fe88f578f7a324d71988a96d2a99b8a4f2b669fe55c2d14ffcb879e49c794a3204549f1d7b1572f248823649522d78fc7fd33690b34b2
|
7
|
+
data.tar.gz: 970b2d3e349a4a41185813816c1e1032bcd5e6ffa16b5115ce6b96f13eb7d36560664719bd7692ec568c9968c932cb789ef9d4cb249b7b247ab8efd0fa8890ea
|
data/lib/nblog_duo.rb
CHANGED
@@ -861,7 +861,7 @@ class Naver
|
|
861
861
|
@driver.find_element(:xpath, '//*[@id="'+page_id+'"]/div[1]/div/div[1]/aside/div/div[3]/div[1]/div[2]/ul/li/a').click
|
862
862
|
sleep(1.5)
|
863
863
|
@driver.switch_to.alert.accept
|
864
|
-
sleep(
|
864
|
+
sleep(7)
|
865
865
|
@driver.find_element(:xpath, '//*[@id="'+page_id+'"]/div[1]/div/header/div[1]/ul/li[19]/button').click
|
866
866
|
sleep(1)
|
867
867
|
@driver.find_element(:xpath, '//*[@class="save_count_btn__ZTLNa"]').click
|
@@ -1294,7 +1294,7 @@ class Naver
|
|
1294
1294
|
sleep(3)
|
1295
1295
|
end
|
1296
1296
|
|
1297
|
-
@driver.find_element(:xpath, '//*[@
|
1297
|
+
@driver.find_element(:xpath, '//*[@data-focus-lock="publishLayer"]').click #1차 등록버튼
|
1298
1298
|
sleep(3)
|
1299
1299
|
category = option['category']
|
1300
1300
|
begin
|
@@ -1302,10 +1302,10 @@ class Naver
|
|
1302
1302
|
if category.to_s == ''
|
1303
1303
|
|
1304
1304
|
else
|
1305
|
-
@driver.find_element(:xpath, '//*[@
|
1305
|
+
@driver.find_element(:xpath, '//*[@aria-label="카테고리 목록 버튼"]').click
|
1306
1306
|
sleep(2)
|
1307
|
-
for nn33 in 1..20
|
1308
|
-
ele33 = @driver.find_element(:xpath, '//*[@id="root"]/div/div[1]/div/div[3]/div[
|
1307
|
+
for nn33 in 1..20
|
1308
|
+
ele33 = @driver.find_element(:xpath, '//*[@id="root"]/div/div[1]/div/div[3]/div[2]/div/div/div/div[1]/div/div/div[2]/div/ul/li['+nn33.to_s+']/span/label')
|
1309
1309
|
if category.include?(ele33.text)
|
1310
1310
|
ele33.click
|
1311
1311
|
break
|
@@ -1326,46 +1326,46 @@ class Naver
|
|
1326
1326
|
sleep(2)
|
1327
1327
|
# data['populationParams'] = '{"configuration":{"openType":'+option['공개']+',"commentYn":'+option['댓글허용']+',"searchYn":'+option['검색허용']+',"sympathyYn":'+option['공감허용']+',"scrapType":'+option['블로그공유']+',"outSideAllowYn":'+option['외부공유허용']+',"twitterPostingYn":false,"facebookPostingYn":false,"cclYn":false},"populationMeta":{"categoryId":'+category_value+',"logNo":null,"directorySeq":0,"directoryDetail":null,"mrBlogTalkCode":null,"postWriteTimeType":"now","tags":"'+tags2+'","moviePanelParticipation":false,"greenReviewBannerYn":false,"continueSaved":false,"noticePostYn":false,"autoByCategoryYn":false,"postLocationSupportYn":false,"postLocationJson":null,"prePostDate":null,"thisDayPostInfo":null,"scrapYn":false,"autoSaveNo":'+(Time.now.to_f.round(3)*1000).to_i.to_s+'},"editorSource":"AbZmtbYiAmhrzPJyhPXNWg=="}'
|
1328
1328
|
if option['공개'] == '2'
|
1329
|
-
@driver.find_element(:xpath ,'//*[@
|
1329
|
+
@driver.find_element(:xpath ,'//*[@for="open_public"]').click #공개버튼
|
1330
1330
|
elsif option['공개'] == '3'
|
1331
|
-
@driver.find_element(:xpath, '//*[@
|
1331
|
+
@driver.find_element(:xpath, '//*[@for="open_both_neighbor"]').click #서이웃 공개
|
1332
1332
|
elsif option['공개'] == '0'
|
1333
|
-
@driver.find_element(:xpath, '//*[@
|
1334
|
-
else
|
1335
|
-
@driver.find_element(:xpath, '//*[@
|
1333
|
+
@driver.find_element(:xpath, '//*[@for="open_private"]').click #비공개
|
1334
|
+
else
|
1335
|
+
@driver.find_element(:xpath, '//*[@for="open_neighbor"]').click #이웃공개
|
1336
1336
|
end
|
1337
1337
|
|
1338
1338
|
sleep(1)
|
1339
1339
|
if option['댓글허용'] == 'true'
|
1340
1340
|
|
1341
1341
|
else
|
1342
|
-
@driver.find_element(:xpath, '//*[@
|
1342
|
+
@driver.find_element(:xpath, '//*[@for="publish-option-comment"]').click
|
1343
1343
|
end
|
1344
1344
|
sleep(1)
|
1345
1345
|
|
1346
1346
|
if option['검색허용'] == 'true'
|
1347
1347
|
|
1348
1348
|
else
|
1349
|
-
@driver.find_element(:xpath, '//*[@
|
1349
|
+
@driver.find_element(:xpath, '//*[@for="publish-option-search"]').click
|
1350
1350
|
end
|
1351
1351
|
sleep(1)
|
1352
1352
|
|
1353
1353
|
if option['공감허용'] == 'true'
|
1354
1354
|
|
1355
1355
|
else
|
1356
|
-
@driver.find_element(:xpath, '//*[@
|
1356
|
+
@driver.find_element(:xpath, '//*[@for="publish-option-sympathy"]').click
|
1357
1357
|
end
|
1358
1358
|
sleep(1)
|
1359
1359
|
|
1360
1360
|
if option['블로그공유'] == '2'
|
1361
1361
|
|
1362
1362
|
else
|
1363
|
-
@driver.find_element(:xpath, '//*[@
|
1363
|
+
@driver.find_element(:xpath, '//*[@for="publish-option-scrap"]').click
|
1364
1364
|
end
|
1365
1365
|
sleep(1)
|
1366
1366
|
|
1367
1367
|
if option['외부공유허용'] == 'true'
|
1368
|
-
@driver.find_element(:xpath, '//*[@
|
1368
|
+
@driver.find_element(:xpath, '//*[@for="publish-option-outside"]').click
|
1369
1369
|
else
|
1370
1370
|
|
1371
1371
|
end
|
@@ -1375,7 +1375,7 @@ class Naver
|
|
1375
1375
|
|
1376
1376
|
if option['발행'] == '2' #저장
|
1377
1377
|
sleep(dd_time.to_i)
|
1378
|
-
@driver.find_element(:xpath, '//*[@
|
1378
|
+
@driver.find_element(:xpath, '//*[@class="save_btn__bzc5B"]').click
|
1379
1379
|
sleep(5)
|
1380
1380
|
elsif option['발행'] == '1' #발행
|
1381
1381
|
sleep(dd_time.to_i)
|
@@ -1393,8 +1393,8 @@ class Naver
|
|
1393
1393
|
sleep(2)
|
1394
1394
|
@driver.find_element(:xpath, '//*[@title="예약 발행 시간 선택"]').click
|
1395
1395
|
sleep(2)
|
1396
|
-
for nn66 in 1..24
|
1397
|
-
ele66 = @driver.find_element(:xpath, '//*[@id="root"]/div/div[1]/div/div[3]/div[
|
1396
|
+
for nn66 in 1..24
|
1397
|
+
ele66 = @driver.find_element(:xpath, '//*[@id="root"]/div/div[1]/div/div[3]/div[2]/div/div/div/div[7]/div/div[2]/div/div[2]/select/option['+nn66.to_s+']')
|
1398
1398
|
if sigan.include?(ele66.text)
|
1399
1399
|
ele66.click
|
1400
1400
|
break
|
@@ -1415,8 +1415,8 @@ class Naver
|
|
1415
1415
|
|
1416
1416
|
@driver.find_element(:xpath, '//*[@title="예약 발행 분 선택"]').click
|
1417
1417
|
sleep(2)
|
1418
|
-
for nn77 in 1..6
|
1419
|
-
ele77 = @driver.find_element(:xpath, '//*[@id="root"]/div/div[1]/div/div[3]/div[
|
1418
|
+
for nn77 in 1..6
|
1419
|
+
ele77 = @driver.find_element(:xpath, '//*[@id="root"]/div/div[1]/div/div[3]/div[2]/div/div/div/div[7]/div/div[2]/div/div[3]/select/option['+nn77.to_s+']')
|
1420
1420
|
if bun.include?(ele77.text)
|
1421
1421
|
ele77.click
|
1422
1422
|
break
|
@@ -1428,7 +1428,7 @@ class Naver
|
|
1428
1428
|
puts e77
|
1429
1429
|
end
|
1430
1430
|
|
1431
|
-
@driver.find_element(:xpath, '//*[@
|
1431
|
+
@driver.find_element(:xpath, '//*[@data-testid="seOnePublishBtn"]').click #최종 등록버튼
|
1432
1432
|
sleep(7)
|
1433
1433
|
else
|
1434
1434
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nblog_duo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
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-20 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: File to Clipboard gem
|
14
14
|
email: mymin26@naver.com
|