cafe_basics_duo 0.1.59 → 0.1.63
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/cafe_basics_duo.rb +23 -13
- 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: 90c85d8b8e45dbf36826c5265094b72d6e6f64bd0a531443b96f579af28f2a31
|
4
|
+
data.tar.gz: 69815a96803eaaa52e804148870ce43d8e9efcf26d87672f86455391e377a452
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46924ee17c6746bb1f04a7af830a244c6f5b37bf8885737e279aa2e571df5302bf44950b5aff24d8a346cb6f9a88b991c146c70a79c0b9d75e88f4d6a909dfa3
|
7
|
+
data.tar.gz: 757311cab04a974e9a2a3ed97e0b067127c4ce61ea671ce73f13a9937c9cca6bfd0112d26f801e82e240e729289d7ac9c17cc57416a26d2e262dd3547ae236af
|
data/lib/cafe_basics_duo.rb
CHANGED
@@ -23,7 +23,6 @@ include AutoClickMethods
|
|
23
23
|
using Rainbow
|
24
24
|
include Glimmer
|
25
25
|
|
26
|
-
|
27
26
|
class Chat
|
28
27
|
def initialize(api_key, gpt_keyword_prompt, model)
|
29
28
|
@api_key = api_key
|
@@ -271,6 +270,7 @@ end
|
|
271
270
|
|
272
271
|
|
273
272
|
|
273
|
+
|
274
274
|
#############################################gpt############################################
|
275
275
|
|
276
276
|
class Naver
|
@@ -308,7 +308,6 @@ class Naver
|
|
308
308
|
# end
|
309
309
|
#end
|
310
310
|
|
311
|
-
|
312
311
|
def chrome_setup(user_id, proxy)
|
313
312
|
naver_cookie_dir = "C:/naver_cookie"
|
314
313
|
FileUtils.mkdir_p(naver_cookie_dir) unless File.exist?(naver_cookie_dir)
|
@@ -405,16 +404,16 @@ class Naver
|
|
405
404
|
puts 'proxy error...'
|
406
405
|
begin
|
407
406
|
begin
|
408
|
-
|
407
|
+
Selenium::WebDriver::Chrome::Service.driver_path = './chromedriver.exe'
|
409
408
|
rescue => e
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
409
|
+
puts "chromedriver 버전 불일치!!"
|
410
|
+
puts "아래 지침을 따라주세요."
|
411
|
+
puts "1.프로그램 종료!"
|
412
|
+
puts "2.크롬 업데이트!"
|
413
|
+
puts "3.프로그램 폴더 내부에 ★tip★-시작시-크롬창이....파일 실행"
|
414
|
+
puts "4.안내된 방식으로 크롬 드라이버 교체"
|
415
|
+
puts "5.재 시작"
|
416
|
+
exit 1
|
418
417
|
end
|
419
418
|
options = Selenium::WebDriver::Chrome::Options.new
|
420
419
|
options.add_argument('--no-first-run') # 자동 실행 시 나타나는 "첫 실행" 화면 방지
|
@@ -447,7 +446,6 @@ class Naver
|
|
447
446
|
|
448
447
|
|
449
448
|
|
450
|
-
|
451
449
|
def login(user_id, user_pw, proxy)
|
452
450
|
@user_id = user_id
|
453
451
|
@user_id11 = user_id
|
@@ -517,6 +515,18 @@ class Naver
|
|
517
515
|
sleep(1.5)
|
518
516
|
@driver.find_element(:xpath, '//*[@type="submit" and @class="btn_check next_step" and @id="submit_btn"]').click
|
519
517
|
sleep(2.5)
|
518
|
+
begin
|
519
|
+
wait = Selenium::WebDriver::Wait.new(:timeout => 3)
|
520
|
+
#요소가 나타날 때까지 3초 동안 기다립니다.
|
521
|
+
wait.until { @driver.find_element(:xpath, '//button[@ype="button" and @id="new.save" and @class="btn_check nlog-click"]') } #기기 확인 버튼 확인
|
522
|
+
#wait.until { @driver.find_element(:xpath, '//button[@ype="button" and @id="new.dontsave" and @class="btn_white nlog-click"]') } #기기 취소 버튼 확인
|
523
|
+
sleep(1.5)
|
524
|
+
@driver.find_element(:xpath, '//button[@ype="button" and @id="new.save" and @class="btn_check nlog-click"]').click
|
525
|
+
#@driver.find_element(:xpath, '//button[@ype="button" and @id="new.dontsave" and @class="btn_white nlog-click"]') #기기 취소 버튼 클릭
|
526
|
+
rescue
|
527
|
+
end
|
528
|
+
|
529
|
+
|
520
530
|
rescue => e
|
521
531
|
puts '-[√] 로딩 지연 접속 실패.......'.red
|
522
532
|
@driver.window_handles.each do |handle|
|
@@ -553,7 +563,7 @@ class Naver
|
|
553
563
|
end
|
554
564
|
return 0
|
555
565
|
@driver.quit
|
556
|
-
end
|
566
|
+
end
|
557
567
|
end
|
558
568
|
|
559
569
|
def create_id
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cafe_basics_duo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.63
|
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-16 00:00:00.000000000 Z
|
11
11
|
dependencies: []
|
12
12
|
description: File to Clipboard gem
|
13
13
|
email: mymin26@naver.com
|