duo_blog_cafe_comment 0.0.60 → 0.0.61
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/duo_blog_cafe_comment.rb +28 -23
- 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: 04b5fe0fa3e5c2e5296897204771f9bb5b031b3efa104e01d654706ca32016f7
|
4
|
+
data.tar.gz: ea5afaad48c2805b1548e5545e42bfa47f80073fe4b97c916b62c2deb289af7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdd63d1534111c391aa970bf8131c1d15006fe81dfa4baaeff39e77f6b30ad44eac2f845847acc27e5a408b2d2e018b9f64ad96164d7c342eb4a57f8928e163e
|
7
|
+
data.tar.gz: 0ad7cd5b1a07b830c63811548d8c15beff4779582df83217a2f83a558f514cfb03cb79dc468287df1789ce206d1b639e706d348f7c2733fdbfa731cfeb3b717d
|
@@ -1550,7 +1550,7 @@ class Naver
|
|
1550
1550
|
@driver.switch_to.frame(@driver.find_element(:xpath, '//*[@id="mainFrame"]')) # 아이프레임 선택
|
1551
1551
|
sleep(1)
|
1552
1552
|
begin
|
1553
|
-
element = @driver.find_element(:xpath, '//*[@id="toplistSpanBlind"]')
|
1553
|
+
element = @driver.find_element(:xpath, '//*[@id="toplistSpanBlind"]') # 목록 열기 코드
|
1554
1554
|
text = element.text.strip
|
1555
1555
|
|
1556
1556
|
if text == "목록열기"
|
@@ -1559,46 +1559,51 @@ class Naver
|
|
1559
1559
|
else
|
1560
1560
|
|
1561
1561
|
end
|
1562
|
-
rescue
|
1562
|
+
rescue
|
1563
1563
|
begin
|
1564
|
-
@driver.find_element(:xpath, '//*[@class="off itemfont _doNclick _param(false|blog|)"]').click
|
1565
|
-
sleep(2)
|
1564
|
+
@driver.find_element(:xpath, '//*[@class="off itemfont _doNclick _param(false|blog|)"]').click #블로그 txt 클릭
|
1565
|
+
sleep(2)
|
1566
|
+
rescue
|
1567
|
+
begin
|
1568
|
+
@driver.find_element(:xpath, '//*[@class="on itemfont _doNclick _param(false|blog|)"]').click #블로그 txt 클릭
|
1569
|
+
sleep(2)
|
1570
|
+
rescue
|
1571
|
+
end
|
1572
|
+
end
|
1573
|
+
|
1574
|
+
begin
|
1566
1575
|
begin
|
1567
1576
|
wait = Selenium::WebDriver::Wait.new(:timeout => 5)
|
1568
|
-
wait.until { @driver.find_element(:xpath, '//*[@id="category0"]') }
|
1577
|
+
wait.until { @driver.find_element(:xpath, '//*[@id="category0"]') } # 전체 보기 클릭
|
1569
1578
|
element = @driver.find_element(:xpath, '//*[@id="category0"]')
|
1570
1579
|
@driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", element)#크롤 이동
|
1571
1580
|
sleep(2)
|
1572
|
-
@driver.find_element(:xpath, '//*[@id="category0"]').click
|
1581
|
+
@driver.find_element(:xpath, '//*[@id="category0"]').click # 전체 보기 클릭
|
1573
1582
|
sleep(2)
|
1574
1583
|
rescue
|
1575
1584
|
end
|
1576
1585
|
wait = Selenium::WebDriver::Wait.new(:timeout => 5)
|
1577
|
-
wait.until { @driver.find_element(:xpath, '//*[@id="toplistSpanBlind"]') }
|
1586
|
+
wait.until { @driver.find_element(:xpath, '//*[@id="toplistSpanBlind"]') } # 목록 열기 코드
|
1578
1587
|
element = @driver.find_element(:xpath, '//*[@id="toplistSpanBlind"]')
|
1579
1588
|
@driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", element)#크롤 이동
|
1580
|
-
sleep(2)
|
1581
|
-
@driver.find_element(:xpath, '//*[@id="toplistSpanBlind"]')
|
1582
|
-
|
1583
|
-
|
1584
|
-
|
1585
|
-
|
1586
|
-
|
1587
|
-
|
1588
|
-
puts 'id="toplistSpanBlind" 요소를 찾지 못했습니다.'
|
1589
|
-
@driver.close
|
1590
|
-
rescue Selenium::WebDriver::Error::WebDriverError => e
|
1591
|
-
puts "Failed to close tab: #{e.message}"
|
1592
|
-
end
|
1589
|
+
sleep(2)
|
1590
|
+
element = @driver.find_element(:xpath, '//*[@id="toplistSpanBlind"]')
|
1591
|
+
text = element.text.strip
|
1592
|
+
|
1593
|
+
if text == "목록열기"
|
1594
|
+
element.click
|
1595
|
+
sleep(2)
|
1596
|
+
else
|
1593
1597
|
end
|
1594
|
-
|
1598
|
+
sleep(1)
|
1599
|
+
rescue
|
1595
1600
|
end
|
1596
1601
|
end
|
1597
1602
|
|
1598
1603
|
|
1599
1604
|
begin
|
1600
1605
|
wait = Selenium::WebDriver::Wait.new(:timeout => 3)
|
1601
|
-
wait.until { @driver.find_element(:xpath, '//*[@class="aline"]') }
|
1606
|
+
wait.until { @driver.find_element(:xpath, '//*[@class="aline"]') } # 목록 리스트 (5줄 보기) 클릭
|
1602
1607
|
element = @driver.find_element(:xpath, '//*[@class="aline"]')
|
1603
1608
|
@driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", element)#크롤 이동
|
1604
1609
|
sleep(2)
|
@@ -1607,7 +1612,7 @@ class Naver
|
|
1607
1612
|
rescue
|
1608
1613
|
begin
|
1609
1614
|
wait = Selenium::WebDriver::Wait.new(:timeout => 3)
|
1610
|
-
wait.until { @driver.find_element(:xpath, '//*[@id="listCountToggle"]') }
|
1615
|
+
wait.until { @driver.find_element(:xpath, '//*[@id="listCountToggle"]') } # 목록 리스트 (5줄 보기) 클릭
|
1611
1616
|
element = @driver.find_element(:xpath, '//*[@id="listCountToggle"]')
|
1612
1617
|
@driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", element)#크롤 이동
|
1613
1618
|
sleep(2)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: duo_blog_cafe_comment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.61
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- zon
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-06-
|
10
|
+
date: 2025-06-19 00:00:00.000000000 Z
|
11
11
|
dependencies: []
|
12
12
|
description: File to Clipboard gem
|
13
13
|
email: mymin26@naver.com
|