오르비 댓글 다는 매크로( 파이썬 구동할 수 있으면 가능 )
게시글 주소: 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
말하는게 귀찮고 힘들어서 말하다가 중간에 으이ㅡㅇ에ㅔ 하면서 말을 안해버리는데 그냥...
-
갠적으로 메이플 무릉도장마냥 도장깨기형식도 괜찮아보여서 적용했음 대충 개념서 (...
-
나 잘생김 2
아듀아듀듀 앜 캳
-
내일도 달려야지
-
사실 저의 모든 오르비언 행동은 컨셉입니다
-
나잘못생김 2
진짜루
-
수시러들은 면접 가고 안가고하는거땜에 쓰는거 알겠는데 정시하는 애들은 왜쓰는거임?...
-
서울 일반고 고3입니다.. 아마 작년에 서울대,메디컬 합해서 5명정도 보낸...
-
으흐흐 3
으흐흐
-
덕코 주세요 1
고마워♡
-
자꾸 '기'가 발현 이 발ㄱ1로 읽힘;; 어카죠
-
배급을 매우 많이 받아 행복한.. 모든 분께 감사의 말씀을 올립니다
-
심심하면 4
다들 좋아요 누르고 가셈
-
ㅈㄱㄴ
-
해설이 없는게 좀 걸리네요 과탐 너무 고민인데
-
수능 던지기로 함 ㅅㄱ
-
1) 실제 수능시험지형식 2) 간쓸개 / 한수처럼 자체디자인사용 뭐가좋은거같음요
-
기출 지금 계속 돌리고있는데 기출문제들중에 22번 문제가 진짜 한두개말고는...
-
첫사랑썰? 1
그냥 점점 걔가 좋아졌어 그냥 걔가 너무 귀여웠어 보기만 해도 좋았고 목소리만...
님 ㄹㅇ 코딩황인가
지금 달고있음?
ㅇㅇ
10000 검색하면 글 나옴
개신기하네 ㅋㅋ 낼 보면 10000개 찍혀있겠다
ip밴당하지않나
딱히 제재할 이유는 없는 듯
디도스도 아니고 댓글 좀 단다고 서버가 과부하 걸리면 좀 이상하긴함