오르비 댓글 다는 매크로( 파이썬 구동할 수 있으면 가능 )
게시글 주소: 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
미적분 처음하면 개념을 뭐로 시작해야할까요?? 시발점말구요
-
Adhd특 4
약먹으면 감동적일정도로 집중이잘됨 갑자기 고능해진기분 뇌에 윤활제 넣어서 사고가 엄청 잘 돌아감
-
정말 숭배하고 또 숭배합니다 대킹버드 님
-
하 1
ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ
-
스탠다드수2ㄱㅊ게풀정도면이해원n제시즌1바로들어가도되나요? n제를한번도 안 풀어봐서...
-
야발 너무 오래걸렸다
-
내가뽑아줄게
-
저 슬슬 무서움뇨 단어 하나하나가 저를 관통하는군뇨
-
윤성훈 개념, m스킬 검더텅 이렇게 할 건데 이거 세 개 끝내면 그 후로는 뭐함요?
-
관심있으신 내용이나 궁금하신 점 있으면 말씀해주세요^^
-
영어의 대모음추이(Great Vowel Shift, GVS)는 중세 영어에서 근대...
-
25 26 27 28 29 30번 답이 522225였음 하지만맞혔죠?
-
내일부터 휴가다 3
-
저 행님 재밌을 때도 있었음
-
'왜'라는 말이 생각보다 역사가 짧음. 중세에는 '매(maj/마ㅣ)'로 쓰였는데...
-
럽폭도로서 소신발언함
님 ㄹㅇ 코딩황인가
지금 달고있음?
ㅇㅇ
10000 검색하면 글 나옴
개신기하네 ㅋㅋ 낼 보면 10000개 찍혀있겠다
ip밴당하지않나
딱히 제재할 이유는 없는 듯
디도스도 아니고 댓글 좀 단다고 서버가 과부하 걸리면 좀 이상하긴함