deltago4 3.0.1 → 9.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/deltago4.rb +12 -6
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9974200333acf3a9f19df309f35959ba741db44fc2fb571aa3c56a5e82ba8672
4
- data.tar.gz: b242188acfb6e17ac13cb82145e9372dec4a37b2d8337d9ef2b0f4c38aac2703
3
+ metadata.gz: 662b1a9f9a0f5a5cb0b84248e15eb79610d157aa093739eb076bcec34e8c854e
4
+ data.tar.gz: 5da6f0fdce0b25118de74fb0ecd7c57e1b2d8f1908d9396761fb207688af3133
5
5
  SHA512:
6
- metadata.gz: cf14186885364690a511d885900672f2fd377829f66e7cc20baf978810588a65729946f383cf190670058e1a3cf6a6220abdee83734045761ef34ec302e7d47e
7
- data.tar.gz: 6523b2124822d45e8e216a76d60fab30ddad1528c79cc254dd96e5474ed82c16d85c63cc370ddfe39adb5612e7e22e23703dc78d30033e26d4e11849fc964b70
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/'+title)
268
+ Dir.mkdir('./data/'+title22)
267
269
  rescue
268
270
 
269
271
  end
270
272
  sleep(2)
271
273
 
272
- File.open('./data/'+title+'/'+product[0]['productId'].to_s+'.html', 'w') do |f|
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/'+title+'/'+dd['productId'].to_s+'.jpg', 'wb') do |f|
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 = 1
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
- @driver.find_element(:xpath, '/html/body/div[1]/div/div/form/div[5]/button').click
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: 3.0.1
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: 2018-04-28 00:00:00.000000000 Z
11
+ date: 2023-01-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: File to Clipboard gem
14
- email: rnjsalwl123@gmail.com
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
- - MIT
22
+ - soonje
23
23
  metadata: {}
24
24
  post_install_message:
25
25
  rdoc_options: []