zon_blog_comment 0.0.35 → 0.0.36
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/zon_blog_comment.rb +48 -4
- 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: 5e26bf14f6e57c78db2a4cd03ddf238a9bd6fef36a8436db1de47ee5c33c88ce
|
4
|
+
data.tar.gz: 9e3e541a2896078ede219fd6d4ead40fe48e03e4443edff14f4cb09a09e33072
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d88af4a67e75ea6acfab4a442b0765500033b12dbec41c92a535084261fc591ac8358f651279901c46f95c1636478f198cae3d3faea88280d28fef5a1fdbf9f
|
7
|
+
data.tar.gz: 6f2e89a0160ac21fed6194d868b5da9f1ff1faa561b4e6fa140a23da7c78918f3b973ee0d49f3338a693815ab0924d097d0002ce3f9425c9f59508349dc743ac
|
data/lib/zon_blog_comment.rb
CHANGED
@@ -260,12 +260,13 @@ class Naver
|
|
260
260
|
|
261
261
|
|
262
262
|
|
263
|
-
def update(content,image,option,counts_number,keyword,blog_url,api_key)
|
263
|
+
def update(content,image,option,counts_number,keyword,blog_url,api_key,counts_delay)
|
264
264
|
|
265
265
|
@keyword = keyword
|
266
266
|
@content = content
|
267
267
|
@api_key = api_key
|
268
268
|
@blog_url = blog_url
|
269
|
+
#sleep(counts_delay)
|
269
270
|
|
270
271
|
|
271
272
|
|
@@ -1238,6 +1239,27 @@ class Naver
|
|
1238
1239
|
end
|
1239
1240
|
end
|
1240
1241
|
sleep(1)
|
1242
|
+
if option['비공개댓글'] == 'true'
|
1243
|
+
begin
|
1244
|
+
@driver.find_element(:xpath, '//*[@class="u_cbox_secret_label"]').click
|
1245
|
+
sleep(1)
|
1246
|
+
rescue
|
1247
|
+
begin
|
1248
|
+
@driver.find_element(:xpath, '//*[@class="u_cbox_secret_check"]').click
|
1249
|
+
sleep(1)
|
1250
|
+
rescue
|
1251
|
+
begin
|
1252
|
+
@driver.find_element(:xpath, '//*[@class="u_cbox_txt_secret"]').click
|
1253
|
+
sleep(1)
|
1254
|
+
rescue
|
1255
|
+
end
|
1256
|
+
end
|
1257
|
+
end
|
1258
|
+
else
|
1259
|
+
# 여기에 다른 코드 추가 가능
|
1260
|
+
end
|
1261
|
+
|
1262
|
+
|
1241
1263
|
begin
|
1242
1264
|
element = @driver.find_element(:xpath, '//*[@data-uiselector="writeButton"]')
|
1243
1265
|
@driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", element) # 크롤 이동
|
@@ -1268,6 +1290,11 @@ class Naver
|
|
1268
1290
|
end
|
1269
1291
|
posting_url = @driver.current_url
|
1270
1292
|
puts "#{posting_url} [댓글 작성 완료 !!]".cyan
|
1293
|
+
|
1294
|
+
begin
|
1295
|
+
sleep(counts_delay)
|
1296
|
+
rescue
|
1297
|
+
end
|
1271
1298
|
|
1272
1299
|
sleep(2)
|
1273
1300
|
begin
|
@@ -1720,7 +1747,7 @@ end
|
|
1720
1747
|
else
|
1721
1748
|
option['공유하기비공개'] = 'false'
|
1722
1749
|
end
|
1723
|
-
@data['table'][index][-1] =
|
1750
|
+
@data['table'][index][-1] = 80
|
1724
1751
|
@data['table'] << []
|
1725
1752
|
@data['table'].pop
|
1726
1753
|
|
@@ -1731,6 +1758,15 @@ end
|
|
1731
1758
|
else
|
1732
1759
|
option['댓글패스'] = 'false'
|
1733
1760
|
end
|
1761
|
+
@data['table'][index][-1] = 85
|
1762
|
+
@data['table'] << []
|
1763
|
+
@data['table'].pop
|
1764
|
+
|
1765
|
+
if @data['포스트설정']['비공개댓글'].checked?
|
1766
|
+
option['비공개댓글'] = 'true'
|
1767
|
+
else
|
1768
|
+
option['비공개댓글'] = 'false'
|
1769
|
+
end
|
1734
1770
|
@data['table'][index][-1] = 90
|
1735
1771
|
@data['table'] << []
|
1736
1772
|
@data['table'].pop
|
@@ -1771,8 +1807,9 @@ end
|
|
1771
1807
|
|
1772
1808
|
# 댓글 설정 수 카운트
|
1773
1809
|
counts_number = @data['table'][index][6].to_i
|
1810
|
+
counts_delay = @data['table'][index][5].to_i
|
1774
1811
|
api_key = @data['포스트설정']['api_key'].text.to_s.force_encoding('utf-8')
|
1775
|
-
naver.update(content,image,option,counts_number,keyword,blog_url,api_key)
|
1812
|
+
naver.update(content,image,option,counts_number,keyword,blog_url,api_key,counts_delay)
|
1776
1813
|
|
1777
1814
|
|
1778
1815
|
|
@@ -3088,13 +3125,20 @@ end
|
|
3088
3125
|
end
|
3089
3126
|
}
|
3090
3127
|
}
|
3091
|
-
@data['포스트설정']['
|
3128
|
+
@data['포스트설정']['비공개댓글'] = checkbox('🔒비공개 댓글 '){
|
3092
3129
|
top 1
|
3093
3130
|
left 3
|
3094
3131
|
on_toggled{
|
3095
3132
|
|
3096
3133
|
}
|
3097
3134
|
}
|
3135
|
+
@data['포스트설정']['댓글패스'] = checkbox('🔙이미 작성한 댓글이 있는 경우 패스'){
|
3136
|
+
top 1
|
3137
|
+
left 4
|
3138
|
+
on_toggled{
|
3139
|
+
|
3140
|
+
}
|
3141
|
+
}
|
3098
3142
|
}
|
3099
3143
|
}
|
3100
3144
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zon_blog_comment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.36
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- zon
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-05-16 00:00:00.000000000 Z
|
11
11
|
dependencies: []
|
12
12
|
description: File to Clipboard gem
|
13
13
|
email: mymin26@naver.com
|