오르비 댓글 다는 매크로( 파이썬 구동할 수 있으면 가능 )
게시글 주소: https://orbi.kr/00071284170
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
import time
def login_to_orbi_and_comment(username, password, article_number, comment_word, num_comments):
# Set up WebDriver
login_url = "https://login.orbi.kr/login"
base_url = "https://orbi.kr/"
article_url = f"{base_url}{article_number}" # Construct the article URL
# Start WebDriver
driver = webdriver.Chrome() # Ensure you have the ChromeDriver installed and accessible
driver.get(login_url)
try:
# Log in to Orbi
time.sleep(3) # Allow time for the page to load
driver.find_element(By.NAME, "username").send_keys(username) # Locate username field by "name"
driver.find_element(By.NAME, "password").send_keys(password) # Locate password field by "name"
driver.find_element(By.NAME, "password").send_keys(Keys.RETURN) # Submit the login form
time.sleep(3) # Wait for login to complete
# Navigate to the article
driver.get(article_url)
time.sleep(3)
# Post comments
for i in range(num_comments):
# Locate the comment input field
comment_area = driver.find_element(By.NAME, "content") # Locate by "name"
comment_area.click() # Activate the comment input field
time.sleep(1) # Allow the input area to activate
# Enter the comment text
comment_area.send_keys(comment_word)
# Locate and click the post button
post_button = driver.find_element(By.CLASS_NAME, "send") # Locate the post button by "class"
post_button.click()
print(f"Comment {i + 1} posted.")
time.sleep(2) # Add delay to mimic human behavior
except Exception as e:
print(f"An error occurred: {e}")
finally:
driver.quit()
if __name__ == "__main__":
username = input("Enter your Orbi username/email: ")
password = input("Enter your password: ")
article_number = input("Enter the article number (last digits of the URL): ")
comment_word = input("Enter the word to comment: ")
num_comments = int(input("Enter the number of comments to post: "))
login_to_orbi_and_comment(username, password, article_number, comment_word, num_comments)
크롬 웹드라이버랑 파이썬 구글에 찾아서 다운 받고
pip install selenium 치셈( 윈도우는 작업관리자, 맥은 터미널)
추후에 자기가 쓴 댓글 지우는 코드도 올릴예정
0 XDK (+0)
유익한 글을 읽었다면 작성자에게 XDK를 선물하세요.
-
『영역 전개』 2
자기현시!
-
님들은 뭐가 더 바람직한거 같나뇨
-
아무래도 일배나 그런 사이트 하는 친구겠지요? ㅜㅜ 이래서 함부러 정치성향 드러내는거 아닌가바용
-
갈테 경기부엉이부터 옮생을 함께 했던 나로선 가슴이 미어진다.다음 옮생엔 내 비서로...
-
나는 지피티한테 정치얘기 한번도 안함. 그냥 오늘 처음 함
-
난 무료임❤️
-
[정책 인사이트] 서울서 비둘기 먹이 주면 ‘과태료 100만원’… 실효성은 ‘글쎄’ 4
비둘기, 먹이 풍부한 도심에서 야생 상태보다 더 많이 번식 먹이 제한해 개체 수...
-
경외감이 드네 나도 더 공부해야겠다
-
최소한 EBS에 올라오는 공짜 해설지보단 유용한 정보를 제공해줘야 하는게 아닌가?
-
대단하다 진짜
-
새 프사 어떰 3
.
-
저도 알고 싶지 않았어요 거지가 되.
-
이거 시켰는데 궁금허네
-
대한민국 숏치는 방법 좀..
-
정법이랑 뭐하는게 좋을까요 일단 정법은 너무 재밌고 잘맞아요 사실 사문 하려고...
-
ㄹㅇ
-
도로롱 2
-
대부분 교과서로부터 나오는거아닌가..?
-
다들 화이팅 2
다들 정신 바짝 차리고 화이팅 내가 응원함
님 ㄹㅇ 코딩황인가
지금 달고있음?
ㅇㅇ
10000 검색하면 글 나옴
개신기하네 ㅋㅋ 낼 보면 10000개 찍혀있겠다
ip밴당하지않나
딱히 제재할 이유는 없는 듯
디도스도 아니고 댓글 좀 단다고 서버가 과부하 걸리면 좀 이상하긴함