오르비 댓글 다는 매크로( 파이썬 구동할 수 있으면 가능 )
게시글 주소: 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를 선물하세요.
-
강기본 스킵할까요? 강기분 듣고싶은데
-
표점만 다르면 반영방식이 어케되는거예요? 만약 25생윤처럼 불불불로나오면 만에하나...
-
[속보] 美국방장관 지명자, 북한을 “핵보유국”으로 지칭 4
피트 헤그세스 미국 국방부 장관 지명자는 14일(현지시간) 워싱턴DC에서 열린 상원...
-
서버도 아프구나 5
나도 아파 내가 서버다
-
가천대 한의대 합격 36
가천대 한의대 합격했습니다!
-
2학년때 재밌게 하긴 했는데 사실 이미 교재 주문함..
-
중앙대랑 서성한 4
중대 ict기준 서성한이랑 입결겹침? 평생을 중낮공은 겹친다고 생각하면서 살아왓는데 너무 중훌인가
-
화학이란 말이죠 학문적으로 아주 매력이 넘칩니다 이성질체를 아시나요? 새로운 것들을...
-
사탐 공대 0
과탐에서 사탐 런 생각중입니다.. 공대가 목푠데 1. 확통+사탐, 2....
-
메이드복 입고 싶다. 31
남자가 입어야 오히려 더 가치 있는 거 아닐까
-
다른 사이트처럼 전체 삭제 버튼이나 선택해서 지우게 하는 기능 좀 넣어주세요 글...
-
오르비 왜 이래 5
뭐지..
님 ㄹㅇ 코딩황인가
지금 달고있음?
ㅇㅇ
10000 검색하면 글 나옴
개신기하네 ㅋㅋ 낼 보면 10000개 찍혀있겠다
ip밴당하지않나
딱히 제재할 이유는 없는 듯
디도스도 아니고 댓글 좀 단다고 서버가 과부하 걸리면 좀 이상하긴함