오르비 댓글 다는 매크로( 파이썬 구동할 수 있으면 가능 )
게시글 주소: 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를 선물하세요.
-
오르비 굿나잇 3
-
하지만 공부를 뒤지게 했다고 시험을 잘보는것도 아닙니다
-
검증 30분 전
-
오동통통한 새우가 잔뜩 들어간
-
추억의 노래 8
-
사문망했나요 3
요즘보면 거의 문과 원주민들이 학살당하게 생긴 거 같은데 과탐 하위권 유입에 비해서...
-
고양이 핥고싶다 4
츄릅
-
멘토 멘티 프로그램 메세지 못봐서 오티 못갔는데 솔직히 메세지를 요즘 누가좀 개억울
-
https://orbi.kr/00035154001/ 뉴런 회독하기 내가 지금 사탐...
-
세상에 이런일이
-
D-218 1
영어단어 day 15 (600단어)복습 수특단어 13강 국어 내신 수특범위...
-
수액 안 맞으면 뒤질 거 같음
-
2025년 발매 왜 내 전역보다 빠르냐...
-
젭알
-
ㅇㄱㅈㅉㅇㅇ?
-
주인 잃은 레어 1개의 경매가 곧 시작됩니다. 개노답 삼형제"와! 개노답...
-
부엉이 왜 갔냐 3
모의고사 올린다매 뭐지
-
이게 무슨 일이야
-
헐...
-
몇몇 옯비언들에게 덕코줌 오르비가 뭐랄까 점점 이상할정도로 작년 제가 처음 봤던...
-
얼버기 1
어제 피곤했나 일찍 깼어요
-
흠.. 3
https://orbi.kr/00072658997 위 링크에서 (A가...
-
오늘은 지각안함 3
흐흐
-
아놀드 때문에 개지랄 떠는 새끼들 때문에 어느 흰팀 혐오 존나 마려웠었는데 한대도...
-
누가 갔나 했네 1
현생에선 자존감 좀 키우고 잘 살아라
-
챔스무관 빅클럽 GOAT
-
[속보] 한양대 실험실서 황산 폭발… 학생 1명 얼굴 화상·3명 경상 2
대학 실험실에서 황산 폭발로 불이 나 실험 중이던 학생 4명이 다치는 사고가...
-
덕코인 주세요 0
주시면 제가 이쁨을 드립니다
-
좀 발상적이게 푸는 사람 없나요
-
김기현 커넥션 1
드릴보다 많이 쉽나..? 풀어보려 했는데 미적도 없는거 같고 난이도도 쉽다는 말이 많네..
-
이건 진짜임
-
사계설 까지만 나가고 시민불복종 안나가네 시불도 하고 끝내주지 시불
-
ㅇㅇ 몇백억은 아니어도 돈좀모아둠
-
얼버기 1
부지런행
-
와 라이스... 1
개미쳤네... 프리킥 멀티골...
-
한무 질문해버릴꺼임
-
종강안하나 0
할때됐는데
-
부엉이님 갔네 1
별일은 없었다니 다행이고 슬슬 반수 시동 거시려나 근데 왜 실검엔 부엉이 말고 다른분이 계시죠
-
집단행동이 이루어지는 양상에 대한 올슨의 주장 - 수특 독서 실전편 제1회 8~11번 0
안녕하세요, 디시 수갤·빡갤 등지에서 활동하는 무명의 국어 강사입니다. 오늘은...
-
아우 졸려 2
-
서킷 30번 있는 회차도 있고 없는 회차도 있던데 왜 그런거에요? 1
강대 다니시는 분 있으면 답변좀..
-
15주차 저는 시간이 굉장히 오래걸려서 미쳐버릴것 같던데요 19문제 푸는데 3시간...
-
늦잠 잤네 1
아이고
-
비록 나와 보험금이 동일한 개체는 아니지만 나와 다른 개체들 사이에 비해 더 강한...
-
뻘글 2
뻘글
-
몸살...
-
사실검증 된 말인지 모르겠는데 저거땜에 애플에서 중국 아이폰 재고 빨리 가져올라고...
-
좃됏네
님 ㄹㅇ 코딩황인가
지금 달고있음?
ㅇㅇ
10000 검색하면 글 나옴
개신기하네 ㅋㅋ 낼 보면 10000개 찍혀있겠다
ip밴당하지않나
딱히 제재할 이유는 없는 듯
디도스도 아니고 댓글 좀 단다고 서버가 과부하 걸리면 좀 이상하긴함