반응형

파이썬(Python)/인스타그램 4

파이썬으로 인스타그램 자동 댓글 남기기(python instagram comment automation)

앞서 장에서는 처음에 인스타 자동 로그인을 실행하였다. 그리고 해시태그를 이용해서 자동 검색을 하였다. 그리고 원하는 페이지만큼 자동으로 좋아요를 클릭하였다. (앞에 내용을 확인하고 싶다면 블로그에 인스타그램 카테고리에서 확인할 수 있다.) 이번장에는 좋아요를 클릭하고 동시에 해당 페이지에 "hello BTS" 라는 댓글을 남길 것이다. 이번 코드의 진행 순서는 아래와 같다. 1. 자동 로그인 2. #BTS 로 검색하기 3. 페이지 "좋아요" 클릭하기 4. 댓글로 "hello BTS" 남기기 5. 다음페이지로 넘기기 6. 3~5번을 8번 반복하기. 우선 댓글에 xpath 위치를 instagram에서 확인해보자. xpath에 대한 내용은 아래 링크에서 확인할 수 있다. scribblinganything.t..

인스타그램 자동 "좋아요" 클릭 (like click) 파이썬

좋아요 자동 동작 코드를 보기 전에 자동 로그인과 자동 검색을 아래 링크서 먼저 확인하고 보는것을 추천한다. scribblinganything.tistory.com/20?category=943911 인스타그램 자동 로그인 (Instagram Log in) 코드>> from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions a.. scribblinganything.tistory.com scribblinganything.tistor..

인스타그램 자동검색(해시태그)

지난번 자동 로그인 다음으로 자동 검색을 실행하겠다. 코드>> from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.keys import Keys import time class InstagramAutomation(): def log_in(self): options = webdriver.ChromeOptions() # options.headless = Tru..

인스타그램 자동 로그인 (Instagram Log in)

코드>> from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC import time def log_in(): options = webdriver.ChromeOptions() # options.headless = True options.add_experimental_option("excludeSwitches", ["enable-logging"]) # options.add_argument("user-agent=Moz..

반응형