deltago4 13.0.12 → 14.0.19
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 +40 -36
- 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: 61c1c2950778a38c472027c0c418cb5a80f162bfa09d05255b085111bb2794a1
|
4
|
+
data.tar.gz: 97078fa66740a5148738576b0430da1d1f8bd1d07847ce835509962cb343aa57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b4ac2b9abf84b21af4539522ef5fd437de53536a2cdde1580e954d1048f895860a7f25c9dbbb8ab8bf50fd6283e5d09238e782a96309e15b104aa405bebc37c
|
7
|
+
data.tar.gz: bcae98bbcebb545f5d0cc4fd889dd880990db9ef03615d17553971b7dc87df8b66e839c9021bb90a592f80ef323f4b062af084f767fbaef74cab222b696ec92b
|
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
|
@@ -394,7 +394,7 @@ class Soonje
|
|
394
394
|
end
|
395
395
|
end
|
396
396
|
end
|
397
|
-
|
397
|
+
|
398
398
|
for n in 0..100
|
399
399
|
begin
|
400
400
|
text3 += text1.shuffle[0..5].join(' ')+text2.shuffle[0]
|
@@ -402,7 +402,7 @@ class Soonje
|
|
402
402
|
|
403
403
|
end
|
404
404
|
end
|
405
|
-
|
405
|
+
|
406
406
|
max_text = rand(900)+600
|
407
407
|
text3 = text3[0..max_text]
|
408
408
|
return text3
|
@@ -441,13 +441,13 @@ class Soonje
|
|
441
441
|
json = Hash.new
|
442
442
|
json['mb_id'] = 'marketingduo'
|
443
443
|
json['mb_password'] = 'mhhs0201'
|
444
|
-
|
444
|
+
|
445
445
|
http = HTTP.post('http://marketingduo.co.kr/bbs/login_check.php', :form => json)
|
446
446
|
cookie = Hash.new
|
447
447
|
http.cookies.each do |i|
|
448
448
|
cookie[i.to_s.split('=')[0]] = i.to_s.split('=')[1]
|
449
449
|
end
|
450
|
-
|
450
|
+
|
451
451
|
http = HTTP.cookies(cookie).get('http://marketingduo.co.kr/bbs/board.php?bo_table=product&sca=&sfl=wr_subject&sop=and&stx='+userid)
|
452
452
|
noko = Nokogiri::HTML(http.to_s)
|
453
453
|
mac_history = Array.new
|
@@ -461,7 +461,7 @@ class Soonje
|
|
461
461
|
break
|
462
462
|
end
|
463
463
|
end
|
464
|
-
|
464
|
+
|
465
465
|
mac_url.each do |i|
|
466
466
|
http = HTTP.cookies(cookie).get(i)
|
467
467
|
noko = Nokogiri::HTML(http.to_s)
|
@@ -472,7 +472,7 @@ class Soonje
|
|
472
472
|
end
|
473
473
|
|
474
474
|
mac_history = mac_history.uniq
|
475
|
-
|
475
|
+
|
476
476
|
mac_address, stderr, status = Open3.capture3('getmac /v')
|
477
477
|
mac_address = mac_address.force_encoding('cp949').encode('utf-8').split('이더넷')[1]
|
478
478
|
mac_address = mac_address.split("\n").join('').split(' ').join
|
@@ -495,7 +495,7 @@ class Soonje
|
|
495
495
|
json = {'token' => token, 'uid' => uid, 'bo_table' => 'product', 'wr_id' => '0', 'wr_subject' => userid, 'wr_content' => mac_address}
|
496
496
|
http = HTTP.cookies(cookie).post('http://marketingduo.co.kr/bbs/write_update.php', :form => json)
|
497
497
|
return 1
|
498
|
-
end
|
498
|
+
end
|
499
499
|
end
|
500
500
|
end
|
501
501
|
|
@@ -527,9 +527,9 @@ class Soonje
|
|
527
527
|
@where_search = 'goldbox'
|
528
528
|
@proxy_list = Array.new
|
529
529
|
@change_text_setting3 = false
|
530
|
-
@user_login_ok =
|
530
|
+
@user_login_ok = 4
|
531
531
|
@code_text = Array.new
|
532
|
-
|
532
|
+
|
533
533
|
|
534
534
|
window('Contacts', 1000, 450) {
|
535
535
|
margined true
|
@@ -541,13 +541,13 @@ class Soonje
|
|
541
541
|
label 'ID'
|
542
542
|
text
|
543
543
|
}
|
544
|
-
|
544
|
+
|
545
545
|
@user_password = password_entry{
|
546
546
|
label 'PW'
|
547
547
|
text
|
548
548
|
}
|
549
549
|
}
|
550
|
-
|
550
|
+
|
551
551
|
button('로그인') {
|
552
552
|
on_clicked {
|
553
553
|
@user_login_ok = login_check(@user_id.text.to_s, @user_password.text.to_s)
|
@@ -564,7 +564,7 @@ class Soonje
|
|
564
564
|
end
|
565
565
|
}
|
566
566
|
}
|
567
|
-
|
567
|
+
|
568
568
|
button('세팅저장') {
|
569
569
|
on_clicked {
|
570
570
|
begin
|
@@ -585,7 +585,7 @@ class Soonje
|
|
585
585
|
end
|
586
586
|
dd['쿠팡아이디'] = @coupang_id.text.to_s
|
587
587
|
dd['쿠팡비번'] = @coupang_password.text.to_s
|
588
|
-
dd['포스팅딜레이'] = @post_delay.text.to_s
|
588
|
+
dd['포스팅딜레이'] = @post_delay.text.to_s
|
589
589
|
dd['포스팅수량'] = @post_counter.text.to_s
|
590
590
|
dd['포스팅갯수1'] = @counter_start.text.to_s
|
591
591
|
dd['포스닝갯수2'] = @counter_end.text.to_s
|
@@ -631,7 +631,7 @@ class Soonje
|
|
631
631
|
end
|
632
632
|
}
|
633
633
|
}
|
634
|
-
|
634
|
+
|
635
635
|
button('세팅로드') {
|
636
636
|
on_clicked {
|
637
637
|
begin
|
@@ -724,7 +724,7 @@ class Soonje
|
|
724
724
|
end
|
725
725
|
}
|
726
726
|
}
|
727
|
-
}
|
727
|
+
}
|
728
728
|
|
729
729
|
tab {
|
730
730
|
tab_item('실행설정'){
|
@@ -780,7 +780,7 @@ class Soonje
|
|
780
780
|
@tedering = checkbox('테더링 사용'){
|
781
781
|
stretchy false
|
782
782
|
on_toggled do |c|
|
783
|
-
|
783
|
+
|
784
784
|
end
|
785
785
|
}
|
786
786
|
|
@@ -857,7 +857,7 @@ class Soonje
|
|
857
857
|
if check == true
|
858
858
|
@update_type = 1
|
859
859
|
end
|
860
|
-
end
|
860
|
+
end
|
861
861
|
}
|
862
862
|
}
|
863
863
|
|
@@ -1078,7 +1078,7 @@ class Soonje
|
|
1078
1078
|
}
|
1079
1079
|
vertical_separator {
|
1080
1080
|
stretchy false
|
1081
|
-
|
1081
|
+
|
1082
1082
|
}
|
1083
1083
|
|
1084
1084
|
horizontal_box{
|
@@ -1195,7 +1195,7 @@ class Soonje
|
|
1195
1195
|
end
|
1196
1196
|
}
|
1197
1197
|
|
1198
|
-
|
1198
|
+
|
1199
1199
|
}
|
1200
1200
|
|
1201
1201
|
vertical_separator {
|
@@ -1290,7 +1290,7 @@ class Soonje
|
|
1290
1290
|
@tt4 = checkbox(' 쿠팡파트너스 링크우회/단축도메인 사용'){
|
1291
1291
|
stretchy false
|
1292
1292
|
on_toggled do |c|
|
1293
|
-
@url_change_setting = c.checked?
|
1293
|
+
@url_change_setting = c.checked?
|
1294
1294
|
end
|
1295
1295
|
}
|
1296
1296
|
}
|
@@ -1407,7 +1407,7 @@ class Soonje
|
|
1407
1407
|
stretchy false
|
1408
1408
|
}
|
1409
1409
|
|
1410
|
-
|
1410
|
+
|
1411
1411
|
}
|
1412
1412
|
}
|
1413
1413
|
}
|
@@ -1449,9 +1449,13 @@ class Coupang
|
|
1449
1449
|
#@driver.find_element(:xpath, '/html/body/div[1]/div/div/form/div[4]/label/span').click
|
1450
1450
|
#sleep(1)
|
1451
1451
|
begin
|
1452
|
-
@driver.find_element(:xpath, '/html/body/div[1]/div[1]/div[2]/div[1]/form/div[
|
1452
|
+
@driver.find_element(:xpath, '/html/body/div[1]/div[1]/div[2]/div[1]/form/div[6]/button').click
|
1453
1453
|
rescue
|
1454
|
-
|
1454
|
+
begin
|
1455
|
+
@driver.find_element(:xpath, '/html/body/div[1]/div[1]/div[1]/div/form/div[6]/button').click
|
1456
|
+
rescue
|
1457
|
+
@driver.find_element(:xpath, '/html/body/div[1]/div[1]/div[2]/div[1]/form/div[5]/button').click
|
1458
|
+
end
|
1455
1459
|
end
|
1456
1460
|
sleep(5)
|
1457
1461
|
|
@@ -1587,8 +1591,8 @@ class WordLib
|
|
1587
1591
|
@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'
|
1588
1592
|
puts @cookie2
|
1589
1593
|
@h['Cookie'] = @cookie2
|
1590
|
-
|
1591
|
-
|
1594
|
+
|
1595
|
+
|
1592
1596
|
image_json = {
|
1593
1597
|
'name' => product_id.to_s+'.jpg',
|
1594
1598
|
'action' => 'upload-attachment',
|
@@ -1596,7 +1600,7 @@ class WordLib
|
|
1596
1600
|
'post_id' => post_id.to_i,
|
1597
1601
|
'async-upload' => File.new('./image/'+product_id.to_s+'.jpg')
|
1598
1602
|
}
|
1599
|
-
|
1603
|
+
|
1600
1604
|
puts image_json
|
1601
1605
|
puts @url.split('ttps://').join('ttp://')+'/wp-admin/async-upload.php'
|
1602
1606
|
begin
|
@@ -1640,7 +1644,7 @@ class WordLib
|
|
1640
1644
|
end
|
1641
1645
|
end
|
1642
1646
|
|
1643
|
-
|
1647
|
+
|
1644
1648
|
vv2 = '<div style="text-align: center;" align="center">'+text_top+'</div><br>'
|
1645
1649
|
vv2 += '<div style="text-align: center;" align="center"> </div><br>'
|
1646
1650
|
vv2 += '<div style="text-align: center;" align="center"> </div><br>'
|
@@ -1685,7 +1689,7 @@ class WordLib
|
|
1685
1689
|
data2['user_ID'] = 1
|
1686
1690
|
data2['action'] = 'editpost'
|
1687
1691
|
data2['originalaction'] = 'editpost'
|
1688
|
-
data2['post_author'] = 1
|
1692
|
+
data2['post_author'] = 1
|
1689
1693
|
data2['post_type'] = 'post'
|
1690
1694
|
data2['original_post_status'] = 'draft'
|
1691
1695
|
data2['referredby'] = @url+'/wp-admin/edit.php'
|
@@ -1737,7 +1741,7 @@ class WordLib
|
|
1737
1741
|
|
1738
1742
|
begin
|
1739
1743
|
if proxy_check
|
1740
|
-
begin
|
1744
|
+
begin
|
1741
1745
|
http = HTTP.via(proxy_ip.split(':')[0], proxy_ip.split(':')[1].to_i).cookies(@cookie).post(@url+'/wp-admin/post.php', :form => data2)
|
1742
1746
|
rescue
|
1743
1747
|
puts proxy_ip.to_s+' proxy error 프록시 없이 업로드'
|
@@ -1752,7 +1756,7 @@ class WordLib
|
|
1752
1756
|
retry
|
1753
1757
|
end
|
1754
1758
|
puts http.to_s
|
1755
|
-
|
1759
|
+
|
1756
1760
|
end
|
1757
1761
|
|
1758
1762
|
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:
|
4
|
+
version: 14.0.19
|
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.
|
39
|
+
rubygems_version: 3.3.7
|
40
40
|
signing_key:
|
41
41
|
specification_version: 4
|
42
42
|
summary: file to clipboard
|