오르비 댓글 다는 매크로( 파이썬 구동할 수 있으면 가능 )
게시글 주소: 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를 선물하세요.
-
안녕하세요 오랜만에 입시 관해서 이것저것 찾아보다가 궁금한 게 생겼는데 제가 응시할...
-
쌤???
-
왜 네가 거기 있음...?
-
공부 안해본 사람들이나 하는 병신같은 예측이다. 상식적으로 사람의 가장 찬란한...
-
28예시 국어 [18-23]세트에 관한 몇 가지 의문 0
1. 서술 오류 셋째 문단 뒷 두 줄에서 “표현의 자유를 제한하여 얻는 이익에 비해...
-
뉴런에는 쌍곡선 접선 공식은 -1일 때는 없다고 하고 수분감에서도 없다고 직접...
-
국어 강기분 5주차까지 듣다가 복습은 1도 안하고 인강만 주구장창 들어서 수학도...
-
영어 답 3
문삽 헷갈렸는데 두개 알려줄사람
-
더프 기하 답 0
기하는 푸신분 없나요..? ㅠㅠ 541231 64 91 전 이렇게 나왔는데 푸신분...
-
이대남들 존나 불쌍한점 11
맨날 표팔이에 이용만 당함 윤석열도 여가부 없애겠다고 해서 이대남들 표 싹...
-
더프 수학 3
81점 확통 보정 1되나요ㅠㅠ 2라도.. 평생 4등급으로만 살아왔어요..
-
ㅅㅂ 지금도 사람 없어서 준장애인도 끌고가는데
-
왜 하필 내가 간 이후에
-
시험개망했네 14
학점 안녕
-
군10개월 하면 7
공익 폐지까진 솔직히 잘 모르겠는데 지금 공익 월급 너무 쎄서 공익 아예 안 뽑는...
-
웅웅
-
가뜩이나 인구수도 많은데 의대 정원도 원래대로라지만 줬다 뺐긴 것 같은 07은 개추 ㅋㅋ
-
회음후 열전 0
괴통 말을 끝까지 듣지..
-
.
-
그러면 징병제 12개월로 줄여드립니다 어때?
-
사1과1 해도 되나요
-
사기 이사 열전 2
역시 진나라 실세는 이사다 이말이야
-
대학에서 교수님이 알려주신던데 읍읍....
-
백준을 풀자 0
벅벅
-
시발무슨모병제야내21개월은누가보상해주는데
-
https://n.news.naver.com/article/629/0000382814...
-
칸트 명언 5
-
앤비디아급 회사 기본소득 챗지피티급 에이아이 개발 및 무료배포 모병제 하...
-
근데 내가 갈때까진 징병제겠지 아니면 또 말바꿀지도
-
시험이 다 끝나지도 않았는데 전과목 시험지가 올라왔네요 0
좀 띵하네
-
Yoon again(전닉 실비기생충) 이 좌파 틀딱은 오르비에서 뭐하냐 3
얼른 무덤으로 돌아가라
-
공부하고 올게 7시에 봐
-
선착 2명 쉬는시간 끝나가서 급함
-
살아라 16
그대는아름답다
-
이재명 "군, 선택적 모병제로 운영…증세보단 재정 효율 재편성" 8
(대전·서울=뉴스1) 원태성 한병찬 기자 = 이재명 더불어민주당 대선 경선 후보는...
-
orbi_come 팔로우 해주세용 맞팔 할게용
-
카큘러스님껜 드릴 말이 없습니다..
-
아이패두로 글씨는 안이쁘긴함
-
10만원 넘게 삭제
-
강기분 안들으니까 지금 하나도기억안남 현대시 해석 어캐해야함?
-
입니다(케로로 톤으로)
-
지지합니다
-
반수반으로 들어갈 생각인데 컨텐츠(모고나 n제..)거기서 주는 걸로 충분한가요?...
-
경상도인데 꽤
-
사실이면 씨발 닥치고 이재명 찍는다
-
간쓸개 꼬라지 3
문제존나병신같네~ 나만그럼?? 내가 현대시를 존나 못해서그런가? 강기분 재수강 해야되나??
-
세이프!! 0
휴
님 ㄹㅇ 코딩황인가
지금 달고있음?
ㅇㅇ
10000 검색하면 글 나옴
개신기하네 ㅋㅋ 낼 보면 10000개 찍혀있겠다
ip밴당하지않나
딱히 제재할 이유는 없는 듯
디도스도 아니고 댓글 좀 단다고 서버가 과부하 걸리면 좀 이상하긴함