오르비 댓글 다는 매크로( 파이썬 구동할 수 있으면 가능 )
게시글 주소: 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
1. 언매 미적 생명 생윤 2. 화작 미적 생명 생윤 3. 언매 확통 생명 생윤...
-
오늘 편입 서류제출 끝났으니까… 이론상 내일부터 조발날 가능성 존재… 15일 가자…
-
오랜 폐관수련 0
사실 뭘 수련한거 같진 않지만 폐관에 있다보니 사람과 오래 대화하는 것이 힘든데 어카나요
-
아니 왜 지지율 다루는 뉴스글에서 계엄가지고 키배를 뜸 0
오르비는 정신건강에 안좋다ㅡ
-
아니 잡스형 0
ㅅㅂ 왜 이렇게 복잡하니
-
현우진 정승제 0
최근에 미적에서 확통으로 갈아탄 사람인데 1. 확통 노배에서 현우진 시발점부터...
-
그냥 입구컷이면 미련없이 빠이빠이인데2단계떨이면 기분 31415926535배 나쁨
-
참고로 기존 가격은 일주일에 만원임뇨
-
치대 0
설치 목표로 2과목하는 건 리스크가 너무 크겠죠 그냥 겸손하게 1 1하는게 맞겠죠?
-
연치 0
(언미)사탐2 vs 사1과1 님들이라묜 ++ 연대 내신 반영 생기부 말고 내신만 반영 맞나요
-
고3때 시발점 미적분 상,하 듣고 워크북이랑(step2는 다는 못품) 쎈 풀고 뉴런...
-
문과분들께 여쭤봐요 13
1. 혹시 고2때 사탐 몇과목 하셨나요 2. 과탐 진로선택과목도 하셨나요 3....
-
야식 땡기는데 0
이거 뇌가 속이는거겠지??
님 ㄹㅇ 코딩황인가
지금 달고있음?
ㅇㅇ
10000 검색하면 글 나옴
개신기하네 ㅋㅋ 낼 보면 10000개 찍혀있겠다
ip밴당하지않나
딱히 제재할 이유는 없는 듯
디도스도 아니고 댓글 좀 단다고 서버가 과부하 걸리면 좀 이상하긴함