posting_duo 0.0.11 → 0.0.13
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.
- checksums.yaml +4 -4
- data/lib/posting_duo.rb +30 -6
- 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: 0e9aac868e76854f511676f7baf7b12e515b0d0a827568cefe70ddeca76db1ee
|
4
|
+
data.tar.gz: 372415f9f141c6cecd74ce005aa93dbce43b837d2704781fc488a63ff100a464
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4a438e1d87a1f39c77e13965ba5e99e332860c1be946c9b48d24733a5f73e29dd77f6e6c309b009077caeb238a0db60f849b417370e2f4dbe93448281ebb339
|
7
|
+
data.tar.gz: b2a63d4e39a6d8dc20e6676147e3456ea7b4cd7c67f307ec67913a4e6b7843396abfd4f7b28a00035a97145651ba7dcbe0a6675a3e6afa9b3d2a4d16bc1b8398
|
data/lib/posting_duo.rb
CHANGED
@@ -42,7 +42,11 @@ class Naver
|
|
42
42
|
options.timeouts = {page_load: 20_000}
|
43
43
|
options.add_argument('--start-maximized')
|
44
44
|
options.add_argument('user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.6723.59 Safari/537.36') # user-agent 위조
|
45
|
-
|
45
|
+
# `capabilities` 사용
|
46
|
+
capabilities = [options]
|
47
|
+
|
48
|
+
# 드라이버 초기화 (capabilities 사용)
|
49
|
+
@driver = Selenium::WebDriver.for(:chrome, capabilities: capabilities)
|
46
50
|
#options.add_argument('--disable-blink-features=AutomationControlled')
|
47
51
|
#options.add_argument('--disable-popup-blocking')
|
48
52
|
#options.add_argument('--dns-prefetch-disable')
|
@@ -59,9 +63,14 @@ class Naver
|
|
59
63
|
#options.add_argument('--disable-translate')
|
60
64
|
#options.add_argument('--disable-extensions-file-access-check')
|
61
65
|
#options.add_argument('--disable-impl-side-painting')
|
62
|
-
|
66
|
+
#@driver = Selenium::WebDriver.for(:chrome, capabilities: options)
|
63
67
|
rescue
|
64
|
-
|
68
|
+
#@driver = Selenium::WebDriver.for(:chrome, capabilities: options)
|
69
|
+
# `capabilities` 사용
|
70
|
+
capabilities = [options]
|
71
|
+
|
72
|
+
# 드라이버 초기화 (capabilities 사용)
|
73
|
+
@driver = Selenium::WebDriver.for(:chrome, capabilities: capabilities)
|
65
74
|
end
|
66
75
|
else
|
67
76
|
begin
|
@@ -94,7 +103,12 @@ class Naver
|
|
94
103
|
#options.add_argument('--disable-translate')
|
95
104
|
#options.add_argument('--disable-extensions-file-access-check')
|
96
105
|
#options.add_argument('--disable-impl-side-painting')
|
97
|
-
|
106
|
+
#@driver = Selenium::WebDriver.for(:chrome, capabilities: options)
|
107
|
+
# `capabilities` 사용
|
108
|
+
capabilities = [options]
|
109
|
+
|
110
|
+
# 드라이버 초기화 (capabilities 사용)
|
111
|
+
@driver = Selenium::WebDriver.for(:chrome, capabilities: capabilities)
|
98
112
|
rescue => e
|
99
113
|
puts e
|
100
114
|
puts 'proxy error...'
|
@@ -123,9 +137,19 @@ class Naver
|
|
123
137
|
#options.add_argument('--disable-translate')
|
124
138
|
#options.add_argument('--disable-extensions-file-access-check')
|
125
139
|
#options.add_argument('--disable-impl-side-painting')
|
126
|
-
|
140
|
+
#@driver = Selenium::WebDriver.for(:chrome, capabilities: options)
|
141
|
+
# `capabilities` 사용
|
142
|
+
capabilities = [options]
|
143
|
+
|
144
|
+
# 드라이버 초기화 (capabilities 사용)
|
145
|
+
@driver = Selenium::WebDriver.for(:chrome, capabilities: capabilities)
|
127
146
|
rescue
|
128
|
-
|
147
|
+
#@driver = Selenium::WebDriver.for(:chrome, capabilities: options)
|
148
|
+
# `capabilities` 사용
|
149
|
+
capabilities = [options]
|
150
|
+
|
151
|
+
# 드라이버 초기화 (capabilities 사용)
|
152
|
+
@driver = Selenium::WebDriver.for(:chrome, capabilities: capabilities)
|
129
153
|
end
|
130
154
|
end
|
131
155
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: posting_duo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- zon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: File to Clipboard gem
|
14
14
|
email: mymin26@naver.com
|