tizdppz 0.0.3 → 0.0.5
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/tizdppz.rb +42 -12
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56baafedba12d4249c79cff007e9d83b516d7ca04175129b4392dedf9b233b51
|
4
|
+
data.tar.gz: 526295316442c615ab7a15e45eb2b2d11c58a21d7b9e6c5aa7af517fceb3b927
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f5d157174e122cf7c4a81462efd3527b0bd5d246ca7946857bd682d0512473399be823d4efe9d5ffebd846ba22b36669ee906e083b706c83038a5d199488d69
|
7
|
+
data.tar.gz: 3d672bddecf42a4125cb750ded5e47979de93a807152baeec04666830619b501caf6c89ca9ab282f69cabfdeabb8f502c3f77318542656c394031bf7cec52d12
|
data/lib/tizdppz.rb
CHANGED
@@ -590,11 +590,15 @@ class Naver
|
|
590
590
|
# 팔로우
|
591
591
|
if option['팔로우'] == 'true'
|
592
592
|
begin
|
593
|
-
wait.until { @driver.find_element(:xpath, '//*[@data-e2e="
|
593
|
+
wait.until { @driver.find_element(:xpath, '//*[@data-e2e="browse-follow"]') }
|
594
594
|
sleep(1)
|
595
|
-
@driver.find_element(:xpath, '//*[@data-e2e="
|
595
|
+
follow_button = @driver.find_element(:xpath, '//*[@data-e2e="browse-follow"]')
|
596
|
+
@driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", follow_button)
|
597
|
+
sleep(2)
|
598
|
+
@driver.find_element(:xpath, '//*[@data-e2e="browse-follow"]').click
|
596
599
|
follow_success = true
|
597
600
|
puts "[#{index + 1}] 팔로우 완료!"
|
601
|
+
sleep(1)
|
598
602
|
rescue
|
599
603
|
follow_success = false
|
600
604
|
end
|
@@ -606,9 +610,13 @@ class Naver
|
|
606
610
|
begin
|
607
611
|
wait.until { @driver.find_element(:xpath, '//*[@data-e2e="like-icon"]') }
|
608
612
|
sleep(1)
|
613
|
+
like_button = @driver.find_element(:xpath, '//*[@data-e2e="like-icon"]')
|
614
|
+
@driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", like_button)
|
615
|
+
sleep(2)
|
609
616
|
@driver.find_element(:xpath, '//*[@data-e2e="like-icon"]').click
|
610
617
|
like_success = true
|
611
|
-
puts "[#{
|
618
|
+
puts "[#{tagg}] 좋아요 완료!"
|
619
|
+
sleep(1)
|
612
620
|
rescue
|
613
621
|
like_success = false
|
614
622
|
end
|
@@ -645,7 +653,9 @@ class Naver
|
|
645
653
|
else
|
646
654
|
# 중복 체크 비활성화 시 실행할 코드가 있다면 여기에 작성
|
647
655
|
end
|
648
|
-
|
656
|
+
comment_text_button = @driver.find_element(:xpath, '//*[@data-e2e="comment-text"]')
|
657
|
+
@driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", comment_text_button)
|
658
|
+
sleep(2)
|
649
659
|
@driver.find_element(:xpath, '//*[@data-e2e="comment-text"]').click
|
650
660
|
sleep(1)
|
651
661
|
Clipboard.copy(content)
|
@@ -795,11 +805,15 @@ class Naver
|
|
795
805
|
# 팔로우
|
796
806
|
if option['팔로우'] == 'true'
|
797
807
|
begin
|
798
|
-
wait.until { @driver.find_element(:xpath, '//*[@data-e2e="
|
808
|
+
wait.until { @driver.find_element(:xpath, '//*[@data-e2e="browse-follow"]') }
|
799
809
|
sleep(1)
|
800
|
-
@driver.find_element(:xpath, '//*[@data-e2e="
|
810
|
+
follow_button = @driver.find_element(:xpath, '//*[@data-e2e="browse-follow"]')
|
811
|
+
@driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", follow_button)
|
812
|
+
sleep(2)
|
813
|
+
@driver.find_element(:xpath, '//*[@data-e2e="browse-follow"]').click
|
801
814
|
follow_success = true
|
802
815
|
puts "[#{index + 1}] 팔로우 완료!"
|
816
|
+
sleep(1)
|
803
817
|
rescue
|
804
818
|
follow_success = false
|
805
819
|
end
|
@@ -811,9 +825,13 @@ class Naver
|
|
811
825
|
begin
|
812
826
|
wait.until { @driver.find_element(:xpath, '//*[@data-e2e="like-icon"]') }
|
813
827
|
sleep(1)
|
828
|
+
like_button = @driver.find_element(:xpath, '//*[@data-e2e="like-icon"]')
|
829
|
+
@driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", like_button)
|
830
|
+
sleep(2)
|
814
831
|
@driver.find_element(:xpath, '//*[@data-e2e="like-icon"]').click
|
815
832
|
like_success = true
|
816
|
-
puts "[#{
|
833
|
+
puts "[#{tagg}] 좋아요 완료!"
|
834
|
+
sleep(1)
|
817
835
|
rescue
|
818
836
|
like_success = false
|
819
837
|
end
|
@@ -850,7 +868,9 @@ class Naver
|
|
850
868
|
else
|
851
869
|
# 중복 체크 비활성화 시 실행할 코드가 있다면 여기에 작성
|
852
870
|
end
|
853
|
-
|
871
|
+
comment_text_button = @driver.find_element(:xpath, '//*[@data-e2e="comment-text"]')
|
872
|
+
@driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", comment_text_button)
|
873
|
+
sleep(2)
|
854
874
|
@driver.find_element(:xpath, '//*[@data-e2e="comment-text"]').click
|
855
875
|
sleep(1)
|
856
876
|
Clipboard.copy(content)
|
@@ -979,11 +999,15 @@ class Naver
|
|
979
999
|
# 팔로우
|
980
1000
|
if option['팔로우'] == 'true'
|
981
1001
|
begin
|
982
|
-
wait.until { @driver.find_element(:xpath, '//*[@data-e2e="
|
1002
|
+
wait.until { @driver.find_element(:xpath, '//*[@data-e2e="browse-follow"]') }
|
983
1003
|
sleep(1)
|
984
|
-
@driver.find_element(:xpath, '//*[@data-e2e="
|
1004
|
+
follow_button = @driver.find_element(:xpath, '//*[@data-e2e="browse-follow"]')
|
1005
|
+
@driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", follow_button)
|
1006
|
+
sleep(2)
|
1007
|
+
@driver.find_element(:xpath, '//*[@data-e2e="browse-follow"]').click
|
985
1008
|
follow_success = true
|
986
|
-
puts "[#{
|
1009
|
+
puts "[#{index + 1}] 팔로우 완료!"
|
1010
|
+
sleep(1)
|
987
1011
|
rescue
|
988
1012
|
follow_success = false
|
989
1013
|
end
|
@@ -995,9 +1019,13 @@ class Naver
|
|
995
1019
|
begin
|
996
1020
|
wait.until { @driver.find_element(:xpath, '//*[@data-e2e="like-icon"]') }
|
997
1021
|
sleep(1)
|
1022
|
+
like_button = @driver.find_element(:xpath, '//*[@data-e2e="like-icon"]')
|
1023
|
+
@driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", like_button)
|
1024
|
+
sleep(2)
|
998
1025
|
@driver.find_element(:xpath, '//*[@data-e2e="like-icon"]').click
|
999
1026
|
like_success = true
|
1000
1027
|
puts "[#{tagg}] 좋아요 완료!"
|
1028
|
+
sleep(1)
|
1001
1029
|
rescue
|
1002
1030
|
like_success = false
|
1003
1031
|
end
|
@@ -1034,7 +1062,9 @@ class Naver
|
|
1034
1062
|
else
|
1035
1063
|
# 중복 체크 비활성화 시 실행할 코드가 있다면 여기에 작성
|
1036
1064
|
end
|
1037
|
-
|
1065
|
+
comment_text_button = @driver.find_element(:xpath, '//*[@data-e2e="comment-text"]')
|
1066
|
+
@driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", comment_text_button)
|
1067
|
+
sleep(2)
|
1038
1068
|
@driver.find_element(:xpath, '//*[@data-e2e="comment-text"]').click
|
1039
1069
|
sleep(1)
|
1040
1070
|
Clipboard.copy(content)
|