What is Nostr?
μ΄λ‚˜λ¦¬ /
npub1cla…f6fr
2024-03-16 04:36:36

μ΄λ‚˜λ¦¬ on Nostr: πŸ™‹β€β™‚οΈ 파이썬 μ…€λ ˆλ‹ˆμ›€ 질문! μ…€λ ˆλ‹ˆμ›€μ„ μ‚¬μš©ν•΄μ„œ ...

πŸ™‹β€β™‚οΈ 파이썬 μ…€λ ˆλ‹ˆμ›€ 질문!
μ…€λ ˆλ‹ˆμ›€μ„ μ‚¬μš©ν•΄μ„œ μ›ΉνŽ˜μ΄μ§€ 맀크둜λ₯Ό λ§Œλ“€κ³  μžˆμŠ΅λ‹ˆλ‹€.
κ²Œμ‹œκΈ€ μ—¬λŸ¬κ°œλ₯Ό λ™μ‹œμ— μ‚­μ œν•  수 μ—†λŠ” μ‚¬μ΄νŠΈμ—μ„œ κ²Œμ‹œκΈ€ 맀크둜 μ‚­μ œλ₯Ό μœ„ν•΄ μ‚¬μš©ν•  μ˜ˆμ •μž…λ‹ˆλ‹€.
사진에 마우슀 μ»€μ„œλ₯Ό μ˜¬λ €λ†“μ€ λ²„νŠΌμ„ μ…€λ ˆλ‹ˆμ›€μ—μ„œ λͺ»μ°Ύκ³  μ—λŸ¬λ₯Ό 좜λ ₯ν•΄μ„œ 질문 λ“œλ¦½λ‹ˆλ‹€!
μ½”λ“œλŠ” μ•„λž˜μ™€ 같이 μ§°μ–΄μš”.


from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
import pyautogui
import time

driver = webdriver.Chrome()
url = "μ›ΉνŽ˜μ΄μ§€ 링크"
driver.get(url)
driver.maximize_window()

# μ‚­μ œ λ²„νŠΌ 클릭
time.sleep(2)
driver.find_element(By.XPATH, "//*[@id='article-content-wrapper']/div[4]/a[2]").click()

μ—λŸ¬ λ©”μ‹œμ§€λŠ” λ‹€μŒκ³Ό 같이 λœ¨λ„€μš”

selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//a[@id='article-content-wrapper']/div[4]/a[2]"}
μΈν„°λ„·μ—μ„œ ν”νžˆ λ‚˜μ™€μžˆλŠ” iframeμ΄λ‚˜ λ‘œλ”© 전에 μ°Ύμ•„μ„œ μ—λŸ¬λ‚˜λŠ” λ¬Έμ œλŠ” μ•„λ‹Œ 것 κ°™μ•„μ„œ...
슀슀둜 νŠΈλŸ¬λΈ” μŠˆνŒ…μ΄ μ•ˆλΌμ„œ μ˜¬λ €λ΄…λ‹ˆλ‹€ ​:notlikemiya:​

Author Public Key
npub1clacm05r7d0y6tvu90c9nd2xz4la79jg42nk38pkfe8wq52efxwsrxf6fr