deltago4 9.0.11 → 14.0.17

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 +39 -38
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 662b1a9f9a0f5a5cb0b84248e15eb79610d157aa093739eb076bcec34e8c854e
4
- data.tar.gz: 5da6f0fdce0b25118de74fb0ecd7c57e1b2d8f1908d9396761fb207688af3133
3
+ metadata.gz: 874035352a6c084f8974c6c470b181ccfa31acf7fec62fe22db99ef80249d8ab
4
+ data.tar.gz: 185a62ef488880152024655ae63d136d7882461cf72a14daa1cf20648748f81d
5
5
  SHA512:
6
- metadata.gz: d97f6c4ac38a55381c4d3a138e5b504d721a89f4fbc80372e1dbf2b878a77f3ac7600cc4b48e93eb8b4c5d8a1a5a06f2483cf814da795eb6dcc38fc45fdbf927
7
- data.tar.gz: 1f584e98ac6e48c2599c8f457ebab094c0748e20d2fb6459f4e4babba50177881b47c29ae3d40e21249bbd4b19439881c321e5c3783cc4873c46ac5fa828dcf4
6
+ metadata.gz: 3d8e3b4ddaa8b5e6df6562ca0edc616664a0b9b98dca379069d835d53898feac6e72a5d28937ba0efb371c8bf8d7f25d9ab97b9ec54dceadf8d0df1d2a94b883
7
+ data.tar.gz: 69df996f7e25b0d160e278ccd7840566ea293dfd6e8d68a0494431684f9711baeb96d9ddfc37c86c36d0e57b544ad8aeb218bbe29bc2cd31a4dbc5ab64be39fa
data/lib/deltago4.rb CHANGED
@@ -120,7 +120,7 @@ class Soonje
120
120
  end
121
121
 
122
122
  title = title.to_s
123
-
123
+
124
124
  if @title_setting1 == true
125
125
  title = product_data2[0]['title'] + ' ' +title
126
126
  end
@@ -139,7 +139,7 @@ class Soonje
139
139
  text_top = @text_top.to_s.force_encoding('utf-8')+'_'
140
140
  if text_top != ''
141
141
  if @tt1.checked?
142
- @change_memory2.each do |key,v|
142
+ @change_memory2.each do |key,v|
143
143
  text_top = text_top.split(key).join(v.shuffle[0])
144
144
  end
145
145
  end
@@ -161,7 +161,7 @@ class Soonje
161
161
  end
162
162
  end
163
163
 
164
- if @point_change_text2
164
+ if @point_change_text2
165
165
  text_bottom = text_bottom.split(@point_keyword11.text.force_encoding('utf-8')).join(@search_text[0].force_encoding('utf-8'))
166
166
  end
167
167
 
@@ -176,7 +176,7 @@ class Soonje
176
176
  end
177
177
 
178
178
  add_text_check = @add_text_setting2
179
-
179
+
180
180
  if @tag_setting
181
181
  search_text = @search_text[0]
182
182
  else
@@ -235,7 +235,7 @@ class Soonje
235
235
  if url_change_check
236
236
  link_url = change_url(link_url)
237
237
  end
238
-
238
+
239
239
  vv = '<center><img style="text-align: center;" align="center" src="'+dd['image'].to_s.split('212x212').join('500x500')+'"></center>'
240
240
  vv = vv+ '<p style="text-align: center;" align="center">'+dd['productId'].to_s+' => 파일사진위치</p>'
241
241
  vv = vv+ '<div style="text-align: center;" align="center"><span style="font-size: 18pt;">'+dd['title']+'</span></div>'
@@ -274,7 +274,7 @@ class Soonje
274
274
  File.open('./data/'+title22+'/'+product[0]['productId'].to_s.split(' ').join('')+'2.html', 'w') do |f|
275
275
  f.write(vv2)
276
276
  end
277
-
277
+
278
278
 
279
279
  product.each do |dd|
280
280
  begin
@@ -378,8 +378,7 @@ class Soonje
378
378
  noko = Nokogiri::HTML(http.to_s)
379
379
  for y in 1..15
380
380
  begin
381
- t = noko.xpath('//*[@id="main_pack"]/section[1]/div/ul/li['+y.to_s+']/div/div[3]/div/a[2]/div').text.to_s
382
-
381
+ t = noko.xpath('//*[@id="main_pack"]/section[1]/div/ul/li['+y.to_s+']/div/div[2]/div[2]/a').text.to_s
383
382
  rescue
384
383
  t = ''
385
384
  end
@@ -395,7 +394,7 @@ class Soonje
395
394
  end
396
395
  end
397
396
  end
398
-
397
+
399
398
  for n in 0..100
400
399
  begin
401
400
  text3 += text1.shuffle[0..5].join(' ')+text2.shuffle[0]
@@ -403,7 +402,7 @@ class Soonje
403
402
 
404
403
  end
405
404
  end
406
-
405
+
407
406
  max_text = rand(900)+600
408
407
  text3 = text3[0..max_text]
409
408
  return text3
@@ -442,13 +441,13 @@ class Soonje
442
441
  json = Hash.new
443
442
  json['mb_id'] = 'marketingduo'
444
443
  json['mb_password'] = 'mhhs0201'
445
-
444
+
446
445
  http = HTTP.post('http://marketingduo.co.kr/bbs/login_check.php', :form => json)
447
446
  cookie = Hash.new
448
447
  http.cookies.each do |i|
449
448
  cookie[i.to_s.split('=')[0]] = i.to_s.split('=')[1]
450
449
  end
451
-
450
+
452
451
  http = HTTP.cookies(cookie).get('http://marketingduo.co.kr/bbs/board.php?bo_table=product&sca=&sfl=wr_subject&sop=and&stx='+userid)
453
452
  noko = Nokogiri::HTML(http.to_s)
454
453
  mac_history = Array.new
@@ -462,7 +461,7 @@ class Soonje
462
461
  break
463
462
  end
464
463
  end
465
-
464
+
466
465
  mac_url.each do |i|
467
466
  http = HTTP.cookies(cookie).get(i)
468
467
  noko = Nokogiri::HTML(http.to_s)
@@ -471,7 +470,9 @@ class Soonje
471
470
  p title
472
471
  mac_history << title
473
472
  end
474
-
473
+
474
+ mac_history = mac_history.uniq
475
+
475
476
  mac_address, stderr, status = Open3.capture3('getmac /v')
476
477
  mac_address = mac_address.force_encoding('cp949').encode('utf-8').split('이더넷')[1]
477
478
  mac_address = mac_address.split("\n").join('').split(' ').join
@@ -494,7 +495,7 @@ class Soonje
494
495
  json = {'token' => token, 'uid' => uid, 'bo_table' => 'product', 'wr_id' => '0', 'wr_subject' => userid, 'wr_content' => mac_address}
495
496
  http = HTTP.cookies(cookie).post('http://marketingduo.co.kr/bbs/write_update.php', :form => json)
496
497
  return 1
497
- end
498
+ end
498
499
  end
499
500
  end
500
501
 
@@ -526,9 +527,9 @@ class Soonje
526
527
  @where_search = 'goldbox'
527
528
  @proxy_list = Array.new
528
529
  @change_text_setting3 = false
529
- @user_login_ok = 0
530
+ @user_login_ok = 4
530
531
  @code_text = Array.new
531
-
532
+
532
533
 
533
534
  window('Contacts', 1000, 450) {
534
535
  margined true
@@ -540,13 +541,13 @@ class Soonje
540
541
  label 'ID'
541
542
  text
542
543
  }
543
-
544
+
544
545
  @user_password = password_entry{
545
546
  label 'PW'
546
547
  text
547
548
  }
548
549
  }
549
-
550
+
550
551
  button('로그인') {
551
552
  on_clicked {
552
553
  @user_login_ok = login_check(@user_id.text.to_s, @user_password.text.to_s)
@@ -563,7 +564,7 @@ class Soonje
563
564
  end
564
565
  }
565
566
  }
566
-
567
+
567
568
  button('세팅저장') {
568
569
  on_clicked {
569
570
  begin
@@ -584,7 +585,7 @@ class Soonje
584
585
  end
585
586
  dd['쿠팡아이디'] = @coupang_id.text.to_s
586
587
  dd['쿠팡비번'] = @coupang_password.text.to_s
587
- dd['포스팅딜레이'] = @post_delay.text.to_s
588
+ dd['포스팅딜레이'] = @post_delay.text.to_s
588
589
  dd['포스팅수량'] = @post_counter.text.to_s
589
590
  dd['포스팅갯수1'] = @counter_start.text.to_s
590
591
  dd['포스닝갯수2'] = @counter_end.text.to_s
@@ -630,7 +631,7 @@ class Soonje
630
631
  end
631
632
  }
632
633
  }
633
-
634
+
634
635
  button('세팅로드') {
635
636
  on_clicked {
636
637
  begin
@@ -723,7 +724,7 @@ class Soonje
723
724
  end
724
725
  }
725
726
  }
726
- }
727
+ }
727
728
 
728
729
  tab {
729
730
  tab_item('실행설정'){
@@ -779,7 +780,7 @@ class Soonje
779
780
  @tedering = checkbox('테더링 사용'){
780
781
  stretchy false
781
782
  on_toggled do |c|
782
-
783
+
783
784
  end
784
785
  }
785
786
 
@@ -856,7 +857,7 @@ class Soonje
856
857
  if check == true
857
858
  @update_type = 1
858
859
  end
859
- end
860
+ end
860
861
  }
861
862
  }
862
863
 
@@ -1077,7 +1078,7 @@ class Soonje
1077
1078
  }
1078
1079
  vertical_separator {
1079
1080
  stretchy false
1080
-
1081
+
1081
1082
  }
1082
1083
 
1083
1084
  horizontal_box{
@@ -1194,7 +1195,7 @@ class Soonje
1194
1195
  end
1195
1196
  }
1196
1197
 
1197
-
1198
+
1198
1199
  }
1199
1200
 
1200
1201
  vertical_separator {
@@ -1289,7 +1290,7 @@ class Soonje
1289
1290
  @tt4 = checkbox(' 쿠팡파트너스 링크우회/단축도메인 사용'){
1290
1291
  stretchy false
1291
1292
  on_toggled do |c|
1292
- @url_change_setting = c.checked?
1293
+ @url_change_setting = c.checked?
1293
1294
  end
1294
1295
  }
1295
1296
  }
@@ -1406,7 +1407,7 @@ class Soonje
1406
1407
  stretchy false
1407
1408
  }
1408
1409
 
1409
-
1410
+
1410
1411
  }
1411
1412
  }
1412
1413
  }
@@ -1448,9 +1449,9 @@ class Coupang
1448
1449
  #@driver.find_element(:xpath, '/html/body/div[1]/div/div/form/div[4]/label/span').click
1449
1450
  #sleep(1)
1450
1451
  begin
1451
- @driver.find_element(:xpath, '/html/body/div[1]/div[1]/div[2]/div[1]/form/div[5]/button').click
1452
+ @driver.find_element(:xpath, '/html/body/div[1]/div[1]/div[2]/div[1]/form/div[6]/button').click
1452
1453
  rescue
1453
- @driver.find_element(:xpath, '/html/body/div[1]/div[1]/div[1]/div/form/div[5]/button').click
1454
+ @driver.find_element(:xpath, '/html/body/div[1]/div[1]/div[1]/div/form/div[6]/button').click
1454
1455
  end
1455
1456
  sleep(5)
1456
1457
 
@@ -1586,8 +1587,8 @@ class WordLib
1586
1587
  @h['User-Agent'] = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36'
1587
1588
  puts @cookie2
1588
1589
  @h['Cookie'] = @cookie2
1589
-
1590
-
1590
+
1591
+
1591
1592
  image_json = {
1592
1593
  'name' => product_id.to_s+'.jpg',
1593
1594
  'action' => 'upload-attachment',
@@ -1595,7 +1596,7 @@ class WordLib
1595
1596
  'post_id' => post_id.to_i,
1596
1597
  'async-upload' => File.new('./image/'+product_id.to_s+'.jpg')
1597
1598
  }
1598
-
1599
+
1599
1600
  puts image_json
1600
1601
  puts @url.split('ttps://').join('ttp://')+'/wp-admin/async-upload.php'
1601
1602
  begin
@@ -1639,7 +1640,7 @@ class WordLib
1639
1640
  end
1640
1641
  end
1641
1642
 
1642
-
1643
+
1643
1644
  vv2 = '<div style="text-align: center;" align="center">'+text_top+'</div><br>'
1644
1645
  vv2 += '<div style="text-align: center;" align="center"> </div><br>'
1645
1646
  vv2 += '<div style="text-align: center;" align="center"> </div><br>'
@@ -1684,7 +1685,7 @@ class WordLib
1684
1685
  data2['user_ID'] = 1
1685
1686
  data2['action'] = 'editpost'
1686
1687
  data2['originalaction'] = 'editpost'
1687
- data2['post_author'] = 1
1688
+ data2['post_author'] = 1
1688
1689
  data2['post_type'] = 'post'
1689
1690
  data2['original_post_status'] = 'draft'
1690
1691
  data2['referredby'] = @url+'/wp-admin/edit.php'
@@ -1736,7 +1737,7 @@ class WordLib
1736
1737
 
1737
1738
  begin
1738
1739
  if proxy_check
1739
- begin
1740
+ begin
1740
1741
  http = HTTP.via(proxy_ip.split(':')[0], proxy_ip.split(':')[1].to_i).cookies(@cookie).post(@url+'/wp-admin/post.php', :form => data2)
1741
1742
  rescue
1742
1743
  puts proxy_ip.to_s+' proxy error 프록시 없이 업로드'
@@ -1751,7 +1752,7 @@ class WordLib
1751
1752
  retry
1752
1753
  end
1753
1754
  puts http.to_s
1754
-
1755
+
1755
1756
  end
1756
1757
 
1757
1758
  def change_url(url)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deltago4
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.0.11
4
+ version: 14.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - soonje
@@ -36,7 +36,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
36
36
  - !ruby/object:Gem::Version
37
37
  version: '0'
38
38
  requirements: []
39
- rubygems_version: 3.4.10
39
+ rubygems_version: 3.3.7
40
40
  signing_key:
41
41
  specification_version: 4
42
42
  summary: file to clipboard