오르비 댓글 다는 매크로( 파이썬 구동할 수 있으면 가능 )
게시글 주소: 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를 선물하세요.
-
안녕하세요 :) 디올러 S (디올 Science, 디올 소통 계정) 입니다....
-
한평원은?
-
지 맘에 드는 답변 나올 때까지 글 리세마라 돌림 물론 아닌 분들도 많으나 대체로...
-
무려 관동대도 통과한걸 혼자 뒤진거임... 원광은 이미 교수들도 많이 나갔음 그리고...
-
개념 기출 N제 실모 개념어 기출분석 eba 사설주간지(n제) 실모 아니면 깨달음이...
-
치대 하나 썻도르 5 0
으하하하
-
영어회화 노베인데 4 0
아예 처음부터 인도식 발음 탑재 가볼까 재밌을거같은데...
-
비문학은 어떻게 잘하는거지 1 1
기출을 씹어먹어야하나 에혀
-
흠냐뇨이 3 0
역시 킹냥이
-
(실시간) 이재명 따라다니면서 "거기를 찢지말아주세요" 외치는 아저씨 0 1
관저 앞에도 왔음 mbc 라이브 보는데 발성 개쩜
-
난 사랑니 축복받은듯 1 0
고딩때 사랑니 양쪽어금니에 났는데 지금 존나이쁘게 자랐음
-
서강대 오늘 발표 안하나.. 2 0
오늘은 해줄만한디
-
복지장관 "의대정원 '원점 재검토'에 동결·감원도 포함"(종합) 2 6
(서울=뉴스1) 강승지 기자 = 조규홍 보건복지부 장관은 2026학년도 의대정원과...
-
얘들아 의대 꼭와 5 4
나만 ㅈ될순 없지. 같이 망해보자 한번 난 너네들이 꼭 왔음 좋겠어. 노예생활도...
-
두 줄이네요 17 1
독감이
님 ㄹㅇ 코딩황인가
지금 달고있음?
ㅇㅇ
10000 검색하면 글 나옴
개신기하네 ㅋㅋ 낼 보면 10000개 찍혀있겠다
ip밴당하지않나
딱히 제재할 이유는 없는 듯
디도스도 아니고 댓글 좀 단다고 서버가 과부하 걸리면 좀 이상하긴함