오르비 댓글 다는 매크로( 파이썬 구동할 수 있으면 가능 )
게시글 주소: 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를 선물하세요.
-
야썰 10
YEAH~~ Sirrr
-
생명 2 2
생1에서 2등급 받을라면 유전 얼마나 해야됨? 이제 비유전 개념 끝났는데 유전 개무서움 그냥 무서움
-
삼수 고민 7
평균4등급 따리인데 6월부터 시작하면 인서울 들어가긴 힘들겠다는 생각이 들어서요.....
-
강의듣고 화장실가야지.. 이러고 강의듣다가 화장실가는 거 까먹고 자꾸 안가는데 이거...
-
[속보]55경비단, 공수처에 ‘윤석열 대통령 관저 출입허가’ 회신 2
윤석열 대통령이 머무르는 서울 용산구 한남동 관저의 외곽 경비를 맡은 수도방위사령부...
-
ENTP은 뒷담화 잡으면 "역시 난 잘났어." 라고 생각한대요...
-
최저 맞추는 전제하에 상향 적정 하향까지 알려주시면 감사하겠습니다 아 문과이고 사회과학계열 희밍함
-
평균 2.7정도로 그냥 적당한 서울권대학 학생부종합으로 쓰려고 하는데 보니까 대부분...
-
논현동 왔어여 7
-
하 10
다시 군대라는 이름의 감옥으로..
-
원전공만 하는 사람보다 강제로 열심히살게되어서(자체 hard모드) 노력 증폭되는 효과 무조건 있는듯
-
뭘로 풀지… 추천 받습니다…
-
모든 감정, 정서 등을 논리로 분석하는겁니다
-
단과, 재종 관련 사소한 질문들 몇개만 받아주세요 ㅠㅠ
-
북한이 최근 단거리 탄도미사일을 발사하며 도발 수위를 높이고 있습니다. 또한,...
-
옯스타가 뭐죠 16
먹는건가요
-
오늘 운동 못하겠네..
-
냐옹 11
애옹
님 ㄹㅇ 코딩황인가
지금 달고있음?
ㅇㅇ
10000 검색하면 글 나옴
개신기하네 ㅋㅋ 낼 보면 10000개 찍혀있겠다
ip밴당하지않나
딱히 제재할 이유는 없는 듯
디도스도 아니고 댓글 좀 단다고 서버가 과부하 걸리면 좀 이상하긴함