board_posting_duo 0.0.90 → 0.0.92

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/board_posting_duo.rb +61 -15
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1337569f99db5d46f0a26f58ecbe23768507fd927721b55c8cf62a18f487afbe
4
- data.tar.gz: 0ef93e14904a0653efd040d2afb8d65410e619cfd11464ae59627c7b04f0ebf5
3
+ metadata.gz: 433dc421c3f2a77ba362cf54c76b253fd26ab6fb93337d704b290a5189f468af
4
+ data.tar.gz: 2a207614d1d687d0809d9a3e0b4d859080fdd835c83e6d1522ccd8135f7dfd7c
5
5
  SHA512:
6
- metadata.gz: cecb70ca7e445a02c58fdf0e8cde7906914ac5c8c9f179a5d9b7355298701b06c94311b08c8f39baf6683c43179bd6dee0d694365f6eb0cdb2c7b26b0195bd79
7
- data.tar.gz: ebfcdcfbb430a614a31be36471a063c46f95078d0e333dc108d41344cebf49f60ae8b9e37a3149927aecbef3efcf47c2348848bb42c8e8189cb29f5a1b4351c0
6
+ metadata.gz: 451753636c2dbea0ce5c6cb46529e13716eccf43cb99b25ae85fa96381ba6ec6b44a917956676436af85288a5a76d8bd51ce77889586918a901e2fb58a2d7bb0
7
+ data.tar.gz: d1b65b7644689a202c4c6565620f3dbda590f598547cbdc7b4e882ef9c1f133ffc37fa23e5a5c67d93dcf4792170fc030ecd31c026fbae83a61b3fdb39b3db2e
@@ -2636,7 +2636,7 @@ login_url = option['login_url'].to_s
2636
2636
  rescue
2637
2637
  end
2638
2638
 
2639
-
2639
+
2640
2640
 
2641
2641
 
2642
2642
  ##팝업 코드 확인 및 제거 부분─────────────────────────────────────────────────────────────────────>
@@ -4010,7 +4010,7 @@ post_url = option['post_url'].to_s
4010
4010
 
4011
4011
 
4012
4012
  begin
4013
- puts '-[√] 숨김 code 탐색 중 (발견시 제거).......'.green
4013
+
4014
4014
  chat_box = @driver.find_element(:xpath, '//*[@class="adsbygoogle adsbygoogle-noablate"]')
4015
4015
  @driver.execute_script("arguments[0].remove();", chat_box)
4016
4016
  puts '-[√] 숨김 code 1 제거 완료.......'.green
@@ -4019,7 +4019,7 @@ post_url = option['post_url'].to_s
4019
4019
  end
4020
4020
 
4021
4021
  begin
4022
- puts '-[√] 숨김 code 탐색 중 (발견시 제거).......'.green
4022
+
4023
4023
  chat_box = @driver.find_element(:xpath, '//*[@class="google-auto-placed"]')
4024
4024
  @driver.execute_script("arguments[0].remove();", chat_box)
4025
4025
  puts '-[√] 숨김 code 2 제거 완료.......'.green
@@ -4028,7 +4028,7 @@ post_url = option['post_url'].to_s
4028
4028
  end
4029
4029
 
4030
4030
  begin
4031
- puts '-[√] 숨김 code 탐색 중 (발견시 제거).......'.green
4031
+
4032
4032
  chat_box = @driver.find_elements(:xpath, '//*[@class="adsbygoogle adsbygoogle-noablate"]')[1]
4033
4033
  @driver.execute_script("arguments[0].remove();", chat_box)
4034
4034
  puts '-[√] 숨김 code 3 제거 완료.......'.green
@@ -4037,7 +4037,7 @@ post_url = option['post_url'].to_s
4037
4037
  end
4038
4038
 
4039
4039
  begin
4040
- puts '-[√] 숨김 code 탐색 중 (발견시 제거).......'.green
4040
+
4041
4041
  chat_box = @driver.find_elements(:xpath, '//*[@class="adsbygoogle adsbygoogle-noablate"]')[2]
4042
4042
  @driver.execute_script("arguments[0].remove();", chat_box)
4043
4043
  puts '-[√] 숨김 code 4 제거 완료.......'.green
@@ -4046,7 +4046,7 @@ post_url = option['post_url'].to_s
4046
4046
  end
4047
4047
 
4048
4048
  begin
4049
- puts '-[√] 숨김 code 탐색 중 (발견시 제거).......'.green
4049
+
4050
4050
  chat_box = @driver.find_elements(:xpath, '//*[@class="adsbygoogle adsbygoogle-noablate"]')[3]
4051
4051
  @driver.execute_script("arguments[0].remove();", chat_box)
4052
4052
  puts '-[√] 숨김 code 5 제거 완료.......'.green
@@ -4054,11 +4054,38 @@ post_url = option['post_url'].to_s
4054
4054
  rescue
4055
4055
  end
4056
4056
 
4057
+ begin
4058
+
4059
+ chat_box = @driver.find_element(:xpath, '//*[@id="page_wrap"]/header')
4060
+ @driver.execute_script("arguments[0].remove();", chat_box)
4061
+ puts '-[√] 숨김 code 6 제거 완료.......'.green
4062
+ sleep(1)
4063
+ rescue
4064
+ end
4065
+
4066
+ begin
4067
+
4068
+ chat_box = @driver.find_element(:xpath, '//*[@id="contact-form3"]')
4069
+ @driver.execute_script("arguments[0].remove();", chat_box)
4070
+ puts '-[√] 숨김 code 7 제거 완료.......'.green
4071
+ sleep(1)
4072
+ rescue
4073
+ end
4074
+
4075
+ begin
4076
+
4077
+ chat_box = @driver.find_element(:xpath, '//*[@id="across_adn_container"]')
4078
+ @driver.execute_script("arguments[0].remove();", chat_box)
4079
+ puts '-[√] 숨김 code 8 제거 완료.......'.green
4080
+ sleep(1)
4081
+ rescue
4082
+ end
4057
4083
 
4084
+
4058
4085
  end
4059
4086
 
4060
4087
 
4061
-
4088
+
4062
4089
 
4063
4090
 
4064
4091
 
@@ -5593,7 +5620,14 @@ begin
5593
5620
  puts '-[√] HTML 코드 27 code.......'.yellow
5594
5621
  sleep(1)
5595
5622
  rescue
5596
-
5623
+ begin
5624
+
5625
+ @driver.find_element(:xpath, '//*[@id="fwrite"]/div[2]/ul/li/label').click
5626
+ puts '-[√] HTML 코드 28 code.......'.yellow
5627
+ sleep(1)
5628
+ rescue
5629
+
5630
+ end
5597
5631
  end
5598
5632
  end
5599
5633
  end
@@ -5841,7 +5875,19 @@ rescue
5841
5875
  sleep(1)
5842
5876
  puts '내용 항목 코드 타겟 35.......'.red
5843
5877
  rescue
5844
-
5878
+ begin
5879
+ @driver.find_element(:xpath, '/html/body/div[1]/div[2]/div/div/section/form/div[4]/div/textarea').click
5880
+ sleep(1)
5881
+ puts '내용 항목 코드 타겟 35.......'.red
5882
+ rescue
5883
+ begin
5884
+ @driver.find_element(:xpath, '/html/body/div[1]/div[2]/div/div/section/form/div[4]/div/textarea').click
5885
+ sleep(1)
5886
+ puts '내용 항목 코드 타겟 35.......'.red
5887
+ rescue
5888
+
5889
+ end
5890
+ end
5845
5891
  end
5846
5892
  end
5847
5893
  end
@@ -8352,9 +8398,9 @@ class Wordpress
8352
8398
  json['url'] = '%2Fbbs%2FbuyListManager7.php'
8353
8399
  json['mb_id'] = user_id.to_s
8354
8400
  json['mb_password'] = user_pw.to_s
8355
- http = HTTP.post('http://appspace.kr/bbs/login_check.php', :form => json)
8401
+ http = HTTP.post('http://duopro.co.kr/bbs/login_check.php', :form => json)
8356
8402
  if http.to_s.length == 0
8357
- http = HTTP.get('http://appspace.kr/bbs/buyListManager7.php')
8403
+ http = HTTP.get('http://duopro.co.kr/bbs/buyListManager7.php')
8358
8404
  noko = Nokogiri::HTML(http.to_s)
8359
8405
  c = noko.xpath('//*[@id="at-main"]/div/table/tbody').to_s.split('<tr>').length-1
8360
8406
  for n in 1..c
@@ -8381,13 +8427,13 @@ class Wordpress
8381
8427
  json['mb_id'] = 'marketingduo'
8382
8428
  json['mb_password'] = 'mhhs0201'
8383
8429
 
8384
- http = HTTP.post('http://appspace.kr/bbs/login_check.php', :form => json)
8430
+ http = HTTP.post('http://duopro.co.kr/bbs/login_check.php', :form => json)
8385
8431
  cookie = Hash.new
8386
8432
  http.cookies.each do |i|
8387
8433
  cookie[i.to_s.split('=')[0]] = i.to_s.split('=')[1]
8388
8434
  end
8389
8435
 
8390
- http = HTTP.cookies(cookie).get('http://appspace.kr/bbs/board.php?bo_table=product&sca=&sfl=wr_subject&sop=and&stx='+userid+'--그누보드 게시판 자동 글 등록기')
8436
+ http = HTTP.cookies(cookie).get('http://duopro.co.kr/bbs/board.php?bo_table=product&sca=&sfl=wr_subject&sop=and&stx='+userid+'--그누보드 게시판 자동 글 등록기')
8391
8437
  noko = Nokogiri::HTML(http.to_s)
8392
8438
  mac_history = Array.new
8393
8439
  mac_url = Array.new
@@ -8427,14 +8473,14 @@ class Wordpress
8427
8473
  return 1
8428
8474
  else
8429
8475
  puts '신규 기기 등록'
8430
- http = HTTP.cookies(cookie).post('http://appspace.kr/bbs/write_token.php', :form => {'bo_table' => 'product'})
8476
+ http = HTTP.cookies(cookie).post('http://duopro.co.kr/bbs/write_token.php', :form => {'bo_table' => 'product'})
8431
8477
  token = http.to_s.split('token":"')[1].split('"')[0]
8432
8478
  year = Time.now.to_s.split(' ')[0].split('-').join('')
8433
8479
  year2 = Time.now.to_s.split(' ')[1].split(':').join('')
8434
8480
  uid = year+year2
8435
8481
  puts uid
8436
8482
  json = {'token' => token, 'uid' => uid, 'bo_table' => 'product', 'wr_id' => '0', 'wr_subject' => userid+'--그누보드 게시판 자동 글 등록기', 'wr_content' => mac_address}
8437
- http = HTTP.cookies(cookie).post('http://appspace.kr/bbs/write_update.php', :form => json)
8483
+ http = HTTP.cookies(cookie).post('http://duopro.co.kr/bbs/write_update.php', :form => json)
8438
8484
  return 1
8439
8485
  end
8440
8486
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: board_posting_duo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.90
4
+ version: 0.0.92
5
5
  platform: ruby
6
6
  authors:
7
7
  - soonje
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-28 00:00:00.000000000 Z
11
+ date: 2024-10-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: File to Clipboard gem
14
14
  email: rnjstnswp123@naver.com