무료
다른 수강생들이 자주 물어보는 질문이 궁금하신가요?
- 미해결업무 자동화를 위한 파이썬 pyautogui, beautifulsoup 크롤링 기초
크롤링 실행시 멈춤
쿠팡 크롤링을 진행하려고합니다 처음에 확인을 위해 실행 시켜보았는데 input으로 제품 검색하면 목록이 뜨는겁니다. 하지만 입력하면 저상태에서 그냥 멈춰있습니다. 다시 실행도 안되구요 디버깅만 됩니다. 터미널창을 다 지우고 해보아도 그대로입니다. 어떤 문제일까요 ? 현재까지 쓴 코드이고 이것을 실행시키면 저 위와 같이 됩니다.한 100번 실행 본다는 가정하에는 1번씩은 불러올때도 있습니다.
- 미해결업무 자동화를 위한 파이썬 pyautogui, beautifulsoup 크롤링 기초
에러가 너무 납니다.
맥북을 사용하는 유저인데,pyautogui.click(i) File "/Users/kimkitae/opt/anaconda3/lib/python3.9/site-packages/pyautogui/__init__.py", line 594, in wrapper returnVal = wrappedFunction(*args, **kwargs) File "/Users/kimkitae/opt/anaconda3/lib/python3.9/site-packages/pyautogui/__init__.py", line 985, in click x, y = _normalizeXYArgs(x, y) File "/Users/kimkitae/opt/anaconda3/lib/python3.9/site-packages/pyautogui/__init__.py", line 663, in _normalizeXYArgs location = locateOnScreen(firstArg) File "/Users/kimkitae/opt/anaconda3/lib/python3.9/site-packages/pyautogui/__init__.py", line 172, in wrapper return wrappedFunction(*args, **kwargs) File "/Users/kimkitae/opt/anaconda3/lib/python3.9/site-packages/pyautogui/__init__.py", line 210, in locateOnScreen return pyscreeze.locateOnScreen(*args, **kwargs) File "/Users/kimkitae/opt/anaconda3/lib/python3.9/site-packages/pyscreeze/__init__.py", line 375, in locateOnScreen screenshotIm = screenshot( File "/Users/kimkitae/opt/anaconda3/lib/python3.9/site-packages/pyscreeze/__init__.py", line 527, in screenshotosx if tuple(PIL__version__) < (6, 2, 1):TypeError: '<' not supported between instances of 'str' and 'int' 아래와 같은 에러가 지속적으로 발생하는데 무엇이 문제일까요?
- 미해결업무 자동화를 위한 파이썬 pyautogui, beautifulsoup 크롤링 기초
에러가 아래와 같이 뜨는데 어떤 이유 일가요?
DevTools listening on ws://127.0.0.1:56654/devtools/browser/9e1808ec-defa-4ec2-9a11-92c97fa653a3[11404:12320:0201/143716.312:ERROR:device_event_log_impl.cc(215)] [14:37:16.312] USB: usb_device_handle_win.cc:1046 Failed to read descriptor from node connection: 시스템에 부착된 장치가 작동하지 않습니다. (0x1F) [11404:12320:0201/143716.315:ERROR:device_event_log_impl.cc(215)] [14:37:16.314] USB: usb_device_handle_win.cc:1046 Failed to read descriptor from node connection: 시스템에 부착된 장치가 작동하지 않습니다. (0x1F)
- 미해결업무 자동화를 위한 파이썬 pyautogui, beautifulsoup 크롤링 기초
import
visual studio code 에서는 import가 안돼요 일단 jupyter notebook 에서는 되길래 그렇게 실습하려고하긴합니다. 저는 vscode에서 하고싶은데 왜 vscode에서는 안될까요?
- 미해결업무 자동화를 위한 파이썬 pyautogui, beautifulsoup 크롤링 기초
소스 다운은 어디서 받나요?
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 소스 다운은 어디서 받나요?
- 미해결업무 자동화를 위한 파이썬 pyautogui, beautifulsoup 크롤링 기초
네이버가 현재 강의로는 크롤링 안되게 해놓았네요
네이버가 현재 강의로는 크롤링 안되게 해놓았네요
- 미해결업무 자동화를 위한 파이썬 pyautogui, beautifulsoup 크롤링 기초
FileNotFound Error
driver = webdriver.Chrome() 이걸 입력했더니 아래와 같은 에러가 뜨네요 ..크롬 드라이버 버전확인해서 설치했고 맥북입니다! -------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/selenium/webdriver/common/service.py in start(self) 71 cmd.extend(self.command_line_args()) ---> 72 self.process = subprocess.Popen(cmd, env=self.env, 73 close_fds=platform.system() != 'Windows', /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, user, group, extra_groups, encoding, errors, text, umask) 950 --> 951 self._execute_child(args, executable, preexec_fn, close_fds, 952 pass_fds, cwd, env, /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, gid, gids, uid, umask, start_new_session) 1820 err_msg = os.strerror(errno_num) -> 1821 raise child_exception_type(errno_num, err_msg, err_filename) 1822 raise child_exception_type(err_msg) FileNotFoundError: [Errno 2] No such file or directory: 'chromedriver' During handling of the above exception, another exception occurred: WebDriverException Traceback (most recent call last) <ipython-input-12-ec48251f04f8> in <module> ----> 1 driver = webdriver.Chrome() /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/selenium/webdriver/chrome/webdriver.py in __init__(self, executable_path, port, options, service_args, desired_capabilities, service_log_path, chrome_options, keep_alive) 71 service_args=service_args, 72 log_path=service_log_path) ---> 73 self.service.start() 74 75 try: /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/selenium/webdriver/common/service.py in start(self) 79 except OSError as err: 80 if err.errno == errno.ENOENT: ---> 81 raise WebDriverException( 82 "'%s' executable needs to be in PATH. %s" % ( 83 os.path.basename(self.path), self.start_error_message) WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
- 미해결업무 자동화를 위한 파이썬 pyautogui, beautifulsoup 크롤링 기초
import error
--------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-2-6fe94347d1cd> in <module> 1 import urllib.request ----> 2 from bs4 import Beautifulsoup 3 4 url = 'https://search.naver.com/search.naver?where=view&sm=tab_jum&query=파이썬' 5 ImportError: cannot import name 'Beautifulsoup' from 'bs4' (/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/bs4/__init__.py) 이런 에러가 뜨네요?? 어떻게 해야 되나요?
- 미해결업무 자동화를 위한 파이썬 pyautogui, beautifulsoup 크롤링 기초
.text 사용 시 값이 비어있는 칸은 nonetype이 들어가서 에러가 발생하는데 예외처리를 어떻게 해야하나요 ?
.text 사용 시 값이 비어있는 칸은 nonetype이 들어가서 에러가 발생하는데 예외처리를 어떻게 해야하나요 ?
- 미해결업무 자동화를 위한 파이썬 pyautogui, beautifulsoup 크롤링 기초
크롤링 할때 sh_blog_title 형식으로 안나오는데요! ㅠ
f12를 누르고 블로그 창을 봐도 'api_text_lines'으로 나오는데 아무리 찾아도 sh_blog_title 형식으로 안나오네요! ㅠ
- 미해결업무 자동화를 위한 파이썬 pyautogui, beautifulsoup 크롤링 기초
Pyautogui.moveTo 작동이 안돼요
제가 맥을 사용하고 있고 pip를 사용하니 설치가 안된다고 떠서 pip3로 설치했고 python3실행 시켜서 pyautogui.moveTo를 사용하려하는데 좌표를 넣어도 커서가 안바뀌네요 .position() 하면 좌표는 찍히는데 .moveTo()는 아무것도 안돼요 그리고 일단 다른점은 .position()했을때 좌표 포맷이 Point(x=529, y=660) 이렇게 뜨거든요 그래서 제가 .moveTo(700,200) .moveTo(x=700, y=200) 두개의 포맷을 넣어도 아무 반응이 없네요 물론 .moveRel()도 반응없는건 마찬가지에요
- 업무 자동화를 위한 파이썬 pyautogui, beautifulsoup 크롤링 기초
class에 관한 질문입니다.
삭제된 글입니다
- 미해결업무 자동화를 위한 파이썬 pyautogui, beautifulsoup 크롤링 기초
네이버 검색 크롤링에서 무한 스크롤 문제 해결
강의 영상을 보면 검색 후 스크롤을 아래로 내렸을 때 계속해서 게시글이 나타나는 상황이 나타납니다. 모든 게시글을 크롤링하기 위해선 무한스크롤을 돌리는 방법밖에 없을까요?
- 미해결업무 자동화를 위한 파이썬 pyautogui, beautifulsoup 크롤링 기초
키에러가 나는데 어떻게 해야하는지 궁금합니다.
import urllib.request from bs4 import BeautifulSoup url = 'https://search.naver.com/search.naver?query=%ED%8C%8C%EC%9D%B4%EC%8D%AC&nso=&where=blog&sm=tab_viw.all' html = urllib.request.urlopen(url).read() soup = BeautifulSoup(html, 'html.parser') title = soup.find_all(class_ = 'api_txt_lines total_tit') for i in title: print(i.attrs['title']) print(i.attrs['href']) 라고 완성했는데 Traceback (most recent call last): File "main.py", line 11, in <module> print(i.attrs['title']) KeyError: 'title' 라고 뜹니다. '다음' 에서도 블로그로 검색했을 때도 그러고 네이버로도 시도해봤는데 키 값이 안 잡히거나 아니면 len으로 값을 찾아봐도 0으로 뜨는데 class를 잘못 잡은 것인지 어디서 오류가 났는지 궁금합니다. 참고로 제가 하는 url내 검사 창에는 title이 없어서 대체할 것을 계속 찾고 있습니다.. 참고로 html만은 또 잘 출력됩니다.
- 미해결업무 자동화를 위한 파이썬 pyautogui, beautifulsoup 크롤링 기초
에러가 뜹니다
from urllib.parse import quote_plus from bs4 import BeautifulSoup from selenium import webdriver baseUrl = 'https://www.google.com/search?q=' plusUrl = input('무엇을 검색할까요? :') url = baseUrl + quote_plus(plusUrl) driver = webdriver.Chrome() driver.get(url) 이렇게 처는데, 에러가 납니다 어떻게 하나요 에러: DevTools listening on ws://127.0.0.1:62649/devtools/browser/fb7d8021-fd21-4ef6-98ae-84ba89f7e745 Traceback (most recent call last): File "c:\Users\user\Desktop\crawling\구글_크롤링.py", line 9, in <module> driver = webdriver.Chrome() File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 76, in __init__ RemoteWebDriver.__init__( File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in __init__ self.start_session(capabilities, browser_profile) File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute self.error_handler.check_response(response) File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 87 Current browser version is 86.0.4240.193 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe
- 미해결업무 자동화를 위한 파이썬 pyautogui, beautifulsoup 크롤링 기초
스크린샷 폴더 위치 어떻게 아나요?
저장된 스크린샷 폴더 경로 아는 법 알려주시면 감사하겠습니다!
- 미해결업무 자동화를 위한 파이썬 pyautogui, beautifulsoup 크롤링 기초
GuessedAtParserWarning가 뜨고 r의 타입이 다르게 나옵니다
C:\Users\hyoyi\PycharmProjects\crawling\venv\Scripts\python.exe C:/Users/hyoyi/PycharmProjects/crawling/google.py 무엇을 검색할까요? : 파이썬 <class 'bs4.element.ResultSet'> C:/Users/hyoyi/PycharmProjects/crawling/google.py:13: GuessedAtParserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("html.parser"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently. The code that caused this warning is on line 13 of the file C:/Users/hyoyi/PycharmProjects/crawling/google.py. To get rid of this warning, pass the additional argument 'features="html.parser"' to the BeautifulSoup constructor. soup = BeautifulSoup(html) <class 'bs4.element.ResultSet'> Process finished with exit code 0 오류랑 r타입이 다르게 나오는 것을 어떻게 해결하나요?
- 미해결업무 자동화를 위한 파이썬 pyautogui, beautifulsoup 크롤링 기초
keyError 해결
환경이 달라서 생기는 문제인지.... 제가 구름 IDE에 파이썬으로 강의를 따라하고 있는데요. 강의 시작 1분 정도 따라하다가 막혔습니다 ㅜㅜ import pyautogui 부터 에러가 생깁니다 뭐가 문제인지 알려주세요
- 업무 자동화를 위한 파이썬 pyautogui, beautifulsoup 크롤링 기초
실행어떻게 해요?
삭제된 글입니다
- 미해결업무 자동화를 위한 파이썬 pyautogui, beautifulsoup 크롤링 기초
오류 관련 질문이요
from urllib.parse import quote_plus from bs4 import BeautifulSoup from selenium import webdriver baseUrl = 'https://www.google.com/search?q=' plusUrl = input('무엇을 검색할까요? :') url = baseUrl + quote_plus(plusUrl) driver = webdriver.chrome() driver.get(url) File "c:/Users/JunDragon/Desktop/PythonWorkspace/pyauto/google.py", line 9, in <module> driver = webdriver.chrome() TypeError: 'module' object is not callable 그안에 크롬 드라이버가 있는데 이라는 에러가 뜨는데 어떻게 해결하나요 ?