deltago4 3.0.1 → 9.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/deltago4.rb +12 -6
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 662b1a9f9a0f5a5cb0b84248e15eb79610d157aa093739eb076bcec34e8c854e
|
4
|
+
data.tar.gz: 5da6f0fdce0b25118de74fb0ecd7c57e1b2d8f1908d9396761fb207688af3133
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d97f6c4ac38a55381c4d3a138e5b504d721a89f4fbc80372e1dbf2b878a77f3ac7600cc4b48e93eb8b4c5d8a1a5a06f2483cf814da795eb6dcc38fc45fdbf927
|
7
|
+
data.tar.gz: 1f584e98ac6e48c2599c8f457ebab094c0748e20d2fb6459f4e4babba50177881b47c29ae3d40e21249bbd4b19439881c321e5c3783cc4873c46ac5fa828dcf4
|
data/lib/deltago4.rb
CHANGED
@@ -262,14 +262,16 @@ class Soonje
|
|
262
262
|
vv2 += '<div style="text-align: center;" align="center">'+add_text+'</div><br>'
|
263
263
|
end
|
264
264
|
|
265
|
+
title22 = title.split(' ').join('')
|
266
|
+
|
265
267
|
begin
|
266
|
-
Dir.mkdir('./data/'+
|
268
|
+
Dir.mkdir('./data/'+title22)
|
267
269
|
rescue
|
268
270
|
|
269
271
|
end
|
270
272
|
sleep(2)
|
271
273
|
|
272
|
-
File.open('./data/'+
|
274
|
+
File.open('./data/'+title22+'/'+product[0]['productId'].to_s.split(' ').join('')+'2.html', 'w') do |f|
|
273
275
|
f.write(vv2)
|
274
276
|
end
|
275
277
|
|
@@ -282,7 +284,7 @@ class Soonje
|
|
282
284
|
sleep(10)
|
283
285
|
retry
|
284
286
|
end
|
285
|
-
File.open('./data/'+
|
287
|
+
File.open('./data/'+title22+'/'+dd['productId'].to_s+'.jpg', 'wb') do |f|
|
286
288
|
f.write(http_image.body)
|
287
289
|
end
|
288
290
|
end
|
@@ -524,7 +526,7 @@ class Soonje
|
|
524
526
|
@where_search = 'goldbox'
|
525
527
|
@proxy_list = Array.new
|
526
528
|
@change_text_setting3 = false
|
527
|
-
@user_login_ok =
|
529
|
+
@user_login_ok = 0
|
528
530
|
@code_text = Array.new
|
529
531
|
|
530
532
|
|
@@ -1426,7 +1428,7 @@ class Coupang
|
|
1426
1428
|
sleep(3)
|
1427
1429
|
Selenium::WebDriver::Chrome::Service.driver_path = './chromedriver.exe'
|
1428
1430
|
options = Selenium::WebDriver::Chrome::Options.new
|
1429
|
-
options.add_option("debuggerAddress", "127.0.0.1:9222")
|
1431
|
+
options.add_option("debuggerAddress" , "127.0.0.1:9222")
|
1430
1432
|
@driver = Selenium::WebDriver.for :chrome, options: options
|
1431
1433
|
@driver.manage.window.maximize
|
1432
1434
|
@wait = Selenium::WebDriver::Wait.new(:timeout => 5)
|
@@ -1445,7 +1447,11 @@ class Coupang
|
|
1445
1447
|
sleep(1)
|
1446
1448
|
#@driver.find_element(:xpath, '/html/body/div[1]/div/div/form/div[4]/label/span').click
|
1447
1449
|
#sleep(1)
|
1448
|
-
|
1450
|
+
begin
|
1451
|
+
@driver.find_element(:xpath, '/html/body/div[1]/div[1]/div[2]/div[1]/form/div[5]/button').click
|
1452
|
+
rescue
|
1453
|
+
@driver.find_element(:xpath, '/html/body/div[1]/div[1]/div[1]/div/form/div[5]/button').click
|
1454
|
+
end
|
1449
1455
|
sleep(5)
|
1450
1456
|
|
1451
1457
|
rescue => exception
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deltago4
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 9.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- soonje
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: File to Clipboard gem
|
14
|
-
email:
|
14
|
+
email: rnjstnswp123@naver.com
|
15
15
|
executables: []
|
16
16
|
extensions: []
|
17
17
|
extra_rdoc_files: []
|
@@ -19,7 +19,7 @@ files:
|
|
19
19
|
- lib/deltago4.rb
|
20
20
|
homepage: ''
|
21
21
|
licenses:
|
22
|
-
-
|
22
|
+
- soonje
|
23
23
|
metadata: {}
|
24
24
|
post_install_message:
|
25
25
|
rdoc_options: []
|