tg_send_zon 0.0.23 → 0.0.26
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/tg_send_zon.rb +18 -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: 3f9a8bc35540d84ea8de345190e4945cda7a435ac9276f2b0671e765961c1bb9
|
4
|
+
data.tar.gz: a84ceb8e569b2af8a6abfb391edf37acd3c0731f7a8bad4cabc7418d0500e4a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f4b1294c14115c81d92e5700ea4a36fa23bb1031e436a0df58ce75f68e8c9fab2f572b9074ae6ac1542f0a8776e7532e0b7940565cc92551fc90d8180555cae
|
7
|
+
data.tar.gz: 8e41cf724557ee51cd7cce7d572bd0f14edfbed1a4a080863604aa9bc6eaa6a845be44701c463f42ba074e515335e9689ee8cbbc1efbe610f60d548d53e9cf0a
|
data/lib/tg_send_zon.rb
CHANGED
@@ -139,30 +139,14 @@ class Naver
|
|
139
139
|
telegram_cookie_dir = "C:/telegram_cookie"
|
140
140
|
FileUtils.mkdir_p(telegram_cookie_dir) unless File.exist?(telegram_cookie_dir)
|
141
141
|
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
142
|
unless File.exist?("C:/telegram_cookie/" + telegram_number)
|
148
143
|
tdriver_src = File.join(current_dir, 'tdriver')
|
149
144
|
if Dir.exist?(tdriver_src)
|
150
145
|
FileUtils.cp_r(tdriver_src, "C:/telegram_cookie/" + telegram_number)
|
151
146
|
|
152
|
-
|
153
|
-
|
154
147
|
end
|
155
148
|
end
|
156
149
|
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
150
|
# 새로운 스레드 생성 및 실행
|
167
151
|
Thread.new { chrome_setup(telegram_number) }
|
168
152
|
sleep(1)
|
@@ -174,13 +158,26 @@ class Naver
|
|
174
158
|
@driver.execute_script("document.body.style.zoom = '70%'")
|
175
159
|
|
176
160
|
|
161
|
+
|
162
|
+
begin
|
163
|
+
#검색어가 입력되있는경우 크로스
|
164
|
+
wait = Selenium::WebDriver::Wait.new(:timeout => 1)
|
165
|
+
#요소가 나타날 때까지 3초 동안 기다립니다.
|
166
|
+
wait.until { @driver.find_element(:xpath, '//*[@class="Transition_slide icon-container-slide Transition_slide-active"]') }
|
167
|
+
@driver.find_element(:xpath, '//*[class="Transition_slide icon-container-slide Transition_slide-active"]').click
|
168
|
+
sleep(1)
|
169
|
+
rescue
|
170
|
+
end
|
171
|
+
|
172
|
+
|
173
|
+
|
177
174
|
begin
|
178
175
|
wait = Selenium::WebDriver::Wait.new(:timeout => 3)
|
179
176
|
#요소가 나타날 때까지 3초 동안 기다립니다.
|
180
177
|
wait.until { @driver.find_element(:xpath, '//*[@title="Open menu"]') }
|
181
178
|
check_cookie_login = 1
|
182
179
|
# puts'계정 세션 확인!! 로그인 skip.......'.yellow
|
183
|
-
|
180
|
+
|
184
181
|
|
185
182
|
rescue
|
186
183
|
|
@@ -336,9 +333,9 @@ class Naver
|
|
336
333
|
begin
|
337
334
|
wait = Selenium::WebDriver::Wait.new(:timeout => 1.5)
|
338
335
|
#요소가 나타날 때까지 3초 동안 기다립니다.
|
339
|
-
wait.until { @driver.find_element(:xpath, '//*[@
|
336
|
+
wait.until { @driver.find_element(:xpath, '//*[@class="Button close-button smaller translucent round"]') }
|
340
337
|
sleep(1)
|
341
|
-
@driver.find_element(:xpath, '//*[@
|
338
|
+
@driver.find_element(:xpath, '//*[@class="Button close-button smaller translucent round"]').click
|
342
339
|
sleep(1)
|
343
340
|
rescue
|
344
341
|
end
|
@@ -488,9 +485,9 @@ class Naver
|
|
488
485
|
begin
|
489
486
|
wait = Selenium::WebDriver::Wait.new(:timeout => 1.5)
|
490
487
|
#요소가 나타날 때까지 3초 동안 기다립니다.
|
491
|
-
wait.until { @driver.find_element(:xpath, '//*[@
|
488
|
+
wait.until { @driver.find_element(:xpath, '//*[@class="Button close-button smaller translucent round"]') }
|
492
489
|
sleep(1)
|
493
|
-
@driver.find_element(:xpath, '//*[@
|
490
|
+
@driver.find_element(:xpath, '//*[@class="Button close-button smaller translucent round"]').click
|
494
491
|
sleep(1)
|
495
492
|
rescue
|
496
493
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tg_send_zon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.26
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- zon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: File to Clipboard gem
|
14
14
|
email: mymin26@naver.com
|