오르비 댓글 다는 매크로( 파이썬 구동할 수 있으면 가능 )
게시글 주소: 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를 선물하세요.
-
드릴 풀까 틀딱기출 포함해서 기출이나 돌릴까 고민임.. 6모 미적 96이고 2026...
-
기출을 풀지도 안고 어캐 잘함
-
6.12 목요일의 공부 11
주말까지 하루만 더 버티면 되네요 화이팅입니다 다들 오노추 힘 내! - 소녀시대
-
저 80키론데 6
아무도 80키로라고 생각하지 않음 다들 70키로로 보인대 그래도 80키로는 에바니까...
-
n티켓 시즌2 풀고 있는데 너무 쉬워서 빨리 끝낼 것 같아요. 이번 수학 15 22...
-
여도일
-
장학 학원 잘 아시는분 있나요..(2000덕 드릴게요( 11
국수영생윤사문 (화작확통) 26 6평 올 1등급이라면(제바알..) 장학받아 갈수있는...
-
설공~설치 목표입니다. 물화생지로 4C2를 해야하는데 암기를 싫어하면 지구는...
-
1문제에 1시간씩 걸리고 초반은 그래도 풀리는데 매 단원 막바지 가먄 해설강의 듣고...
-
ㅁㅊ 연세대;;; 10
연 3대
-
물리학 중간고사 결과 ㅋㅋ
-
요즘 과탐 1과목 만점 받으면 백분위 100 뜨나요? 3
요즘 과탐 1과목 아직까지는 만점 받으면 그래도 백분위 100은 뜨나요?
-
국어 잘하고싶다 7
수학 잘하고싶다 과탐잘하고싶다 영어는
-
대학 탐방 ㅎㅎ
-
이미지 아님 7
국어 그자체임뇨
-
내 독해력 책임져준 쌤인데.... 은선진, 조은정 쌤 ㄹㅇ 갓갓인데 사라지심 흑흑
-
과탐 타임어택 순위가 어떻게 되나요? 1과목 기준으로요. 그리고 2,3등급 가장...
-
오르비 굿밤 7
-
몇달잡고해야대?? 참고로 수학 개못함
님 ㄹㅇ 코딩황인가
지금 달고있음?
ㅇㅇ
10000 검색하면 글 나옴
개신기하네 ㅋㅋ 낼 보면 10000개 찍혀있겠다
ip밴당하지않나
딱히 제재할 이유는 없는 듯
디도스도 아니고 댓글 좀 단다고 서버가 과부하 걸리면 좀 이상하긴함