tizdppd 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/tizdppd.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: 1a7921ebbeccb41ade9ed5575a92ec314bab20960fae15f17a38f91830a60849
|
4
|
+
data.tar.gz: d558931fbd9cdcd08a1b7fce16419df23350d4216ef51deb8d63214430443f9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91e712d26e62cadc28f9846cc825e484541d9233b13a7e3dbccf1b74129df8746b7e9db49a31fccb410b6923cba3b7aed2903b7dc720c9685160882a7f069ed9
|
7
|
+
data.tar.gz: ceae52da13ed925ebf23d06b881effb26c2816977edfab441ab53863ff80926f656dee757df305ce77ac7cb3d999bb3f4ea6633b148f7389bd1609c74a54db7e
|
data/lib/tizdppd.rb
CHANGED
@@ -594,11 +594,15 @@ class Naver
|
|
594
594
|
# 팔로우
|
595
595
|
if option['팔로우'] == 'true'
|
596
596
|
begin
|
597
|
-
wait.until { @driver.find_element(:xpath, '//*[@data-e2e="
|
597
|
+
wait.until { @driver.find_element(:xpath, '//*[@data-e2e="browse-follow"]') }
|
598
598
|
sleep(1)
|
599
|
-
@driver.find_element(:xpath, '//*[@data-e2e="
|
599
|
+
follow_button = @driver.find_element(:xpath, '//*[@data-e2e="browse-follow"]')
|
600
|
+
@driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", follow_button)
|
601
|
+
sleep(2)
|
602
|
+
@driver.find_element(:xpath, '//*[@data-e2e="browse-follow"]').click
|
600
603
|
follow_success = true
|
601
604
|
puts "[#{index + 1}] 팔로우 완료!"
|
605
|
+
sleep(1)
|
602
606
|
rescue
|
603
607
|
follow_success = false
|
604
608
|
end
|
@@ -610,9 +614,13 @@ class Naver
|
|
610
614
|
begin
|
611
615
|
wait.until { @driver.find_element(:xpath, '//*[@data-e2e="like-icon"]') }
|
612
616
|
sleep(1)
|
617
|
+
like_button = @driver.find_element(:xpath, '//*[@data-e2e="like-icon"]')
|
618
|
+
@driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", like_button)
|
619
|
+
sleep(2)
|
613
620
|
@driver.find_element(:xpath, '//*[@data-e2e="like-icon"]').click
|
614
621
|
like_success = true
|
615
|
-
puts "[#{
|
622
|
+
puts "[#{tagg}] 좋아요 완료!"
|
623
|
+
sleep(1)
|
616
624
|
rescue
|
617
625
|
like_success = false
|
618
626
|
end
|
@@ -649,7 +657,9 @@ class Naver
|
|
649
657
|
else
|
650
658
|
# 중복 체크 비활성화 시 실행할 코드가 있다면 여기에 작성
|
651
659
|
end
|
652
|
-
|
660
|
+
comment_text_button = @driver.find_element(:xpath, '//*[@data-e2e="comment-text"]')
|
661
|
+
@driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", comment_text_button)
|
662
|
+
sleep(2)
|
653
663
|
@driver.find_element(:xpath, '//*[@data-e2e="comment-text"]').click
|
654
664
|
sleep(1)
|
655
665
|
Clipboard.copy(content)
|
@@ -799,11 +809,15 @@ class Naver
|
|
799
809
|
# 팔로우
|
800
810
|
if option['팔로우'] == 'true'
|
801
811
|
begin
|
802
|
-
wait.until { @driver.find_element(:xpath, '//*[@data-e2e="
|
812
|
+
wait.until { @driver.find_element(:xpath, '//*[@data-e2e="browse-follow"]') }
|
803
813
|
sleep(1)
|
804
|
-
@driver.find_element(:xpath, '//*[@data-e2e="
|
814
|
+
follow_button = @driver.find_element(:xpath, '//*[@data-e2e="browse-follow"]')
|
815
|
+
@driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", follow_button)
|
816
|
+
sleep(2)
|
817
|
+
@driver.find_element(:xpath, '//*[@data-e2e="browse-follow"]').click
|
805
818
|
follow_success = true
|
806
819
|
puts "[#{index + 1}] 팔로우 완료!"
|
820
|
+
sleep(1)
|
807
821
|
rescue
|
808
822
|
follow_success = false
|
809
823
|
end
|
@@ -815,9 +829,13 @@ class Naver
|
|
815
829
|
begin
|
816
830
|
wait.until { @driver.find_element(:xpath, '//*[@data-e2e="like-icon"]') }
|
817
831
|
sleep(1)
|
832
|
+
like_button = @driver.find_element(:xpath, '//*[@data-e2e="like-icon"]')
|
833
|
+
@driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", like_button)
|
834
|
+
sleep(2)
|
818
835
|
@driver.find_element(:xpath, '//*[@data-e2e="like-icon"]').click
|
819
836
|
like_success = true
|
820
|
-
puts "[#{
|
837
|
+
puts "[#{tagg}] 좋아요 완료!"
|
838
|
+
sleep(1)
|
821
839
|
rescue
|
822
840
|
like_success = false
|
823
841
|
end
|
@@ -854,7 +872,9 @@ class Naver
|
|
854
872
|
else
|
855
873
|
# 중복 체크 비활성화 시 실행할 코드가 있다면 여기에 작성
|
856
874
|
end
|
857
|
-
|
875
|
+
comment_text_button = @driver.find_element(:xpath, '//*[@data-e2e="comment-text"]')
|
876
|
+
@driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", comment_text_button)
|
877
|
+
sleep(2)
|
858
878
|
@driver.find_element(:xpath, '//*[@data-e2e="comment-text"]').click
|
859
879
|
sleep(1)
|
860
880
|
Clipboard.copy(content)
|
@@ -983,11 +1003,15 @@ class Naver
|
|
983
1003
|
# 팔로우
|
984
1004
|
if option['팔로우'] == 'true'
|
985
1005
|
begin
|
986
|
-
wait.until { @driver.find_element(:xpath, '//*[@data-e2e="
|
1006
|
+
wait.until { @driver.find_element(:xpath, '//*[@data-e2e="browse-follow"]') }
|
987
1007
|
sleep(1)
|
988
|
-
@driver.find_element(:xpath, '//*[@data-e2e="
|
1008
|
+
follow_button = @driver.find_element(:xpath, '//*[@data-e2e="browse-follow"]')
|
1009
|
+
@driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", follow_button)
|
1010
|
+
sleep(2)
|
1011
|
+
@driver.find_element(:xpath, '//*[@data-e2e="browse-follow"]').click
|
989
1012
|
follow_success = true
|
990
|
-
puts "[#{
|
1013
|
+
puts "[#{index + 1}] 팔로우 완료!"
|
1014
|
+
sleep(1)
|
991
1015
|
rescue
|
992
1016
|
follow_success = false
|
993
1017
|
end
|
@@ -999,9 +1023,13 @@ class Naver
|
|
999
1023
|
begin
|
1000
1024
|
wait.until { @driver.find_element(:xpath, '//*[@data-e2e="like-icon"]') }
|
1001
1025
|
sleep(1)
|
1026
|
+
like_button = @driver.find_element(:xpath, '//*[@data-e2e="like-icon"]')
|
1027
|
+
@driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", like_button)
|
1028
|
+
sleep(2)
|
1002
1029
|
@driver.find_element(:xpath, '//*[@data-e2e="like-icon"]').click
|
1003
1030
|
like_success = true
|
1004
1031
|
puts "[#{tagg}] 좋아요 완료!"
|
1032
|
+
sleep(1)
|
1005
1033
|
rescue
|
1006
1034
|
like_success = false
|
1007
1035
|
end
|
@@ -1038,7 +1066,9 @@ class Naver
|
|
1038
1066
|
else
|
1039
1067
|
# 중복 체크 비활성화 시 실행할 코드가 있다면 여기에 작성
|
1040
1068
|
end
|
1041
|
-
|
1069
|
+
comment_text_button = @driver.find_element(:xpath, '//*[@data-e2e="comment-text"]')
|
1070
|
+
@driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", comment_text_button)
|
1071
|
+
sleep(2)
|
1042
1072
|
@driver.find_element(:xpath, '//*[@data-e2e="comment-text"]').click
|
1043
1073
|
sleep(1)
|
1044
1074
|
Clipboard.copy(content)
|