오르비 댓글 다는 매크로( 파이썬 구동할 수 있으면 가능 )
게시글 주소: 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를 선물하세요.
-
말하는 사이 롯뿐.. 고분
-
정시 면접 후기는 흔하지 않은 것 같아 내년 지원자들분께 도움이 되었으면 해서...
-
재수 거의 쌩 노베 패스:메가 대성 일단 조정식 voca 시작해 하는 중 1,2등급...
-
올오카 듣는분들 0
team07인데 독서는 아직 어려워서 올오카 듣고 있는데 문학은 작년에 올오카...
-
의대반수 하려고 했는데 지금 하면 안 되는 거임?? 16
가도 정시보단 논술100%로 가야해서 연세미래캠 성균관대 경희대 가천대 한양대...
-
ㄱㄱㄱ
-
연세대 1
왜 발표안함?
-
6모치고싶다 1
-
[단독] 서울경찰청 "15일 새벽 3시 반 기동대 집결"…윤 대통령 체포영장 재집행 나선다 4
윤석열 대통령 체포영장 집행이 내일(15일) 오전 이뤄질 것이라는 관측이 유력한...
-
수학 커리 병호햄이랑 석원햄중 고민인데 누구들을까요 2
본인 정석풀이를 선호해서 정석풀이로 유명한 두분 강의를 좀 들어봄 솔직히 한석원...
-
등급컷은 상관없고 만점표점이 궁금한 ChillGuy일 때 저번 칼럼에서 2등급 이하...
-
(많은 분들이 볼 수 있게 아래에 내려가 좋아요 부탁드려요) (많은 분들이 볼 수...
님 ㄹㅇ 코딩황인가
지금 달고있음?
ㅇㅇ
10000 검색하면 글 나옴
개신기하네 ㅋㅋ 낼 보면 10000개 찍혀있겠다
ip밴당하지않나
딱히 제재할 이유는 없는 듯
디도스도 아니고 댓글 좀 단다고 서버가 과부하 걸리면 좀 이상하긴함