inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

묻고 답해요

176만명의 커뮤니티!! 함께 토론해봐요.

혹시 광고성 강좌인가요?

Klaytn 클레이튼 블록체인 어플리케이션 만들기 - 이론과 실습

삭제된 글입니다

  • blockchain
rapanui 댓글 2 좋아요 0 조회수 84

키에러가 납니다

미해결

파이썬 입문 및 웹 크롤링을 활용한 다양한 자동화 어플리케이션 제작하기

뉴버전 보고있는데 Close Open High Low Volume Change Date 2019-04-22 204.53 202.83 204.94 202.34 19440000.0 0.0033 2019-04-23 207.48 204.43 207.75 203.90 23320000.0 0.0144 2019-04-24 207.16 207.36 208.48 207.05 17540000.0 -0.0015 2019-04-25 205.28 206.83 207.76 205.12 18540000.0 -0.0091 2019-04-26 204.30 204.90 205.00 202.12 18650000.0 -0.0048 2019-04-29 204.61 204.40 205.97 203.86 22200000.0 0.0015 2019-04-30 209.95 202.69 209.95 199.17 1730000.0 0.0261 Traceback (most recent call last): File "pandas/_libs/index.pyx", line 457, in pandas._libs.index.DatetimeEngine.get_loc File "pandas/_libs/hashtable_class_helper.pxi", line 811, in pandas._libs.hashtable.Int64HashTable.get_item TypeError: an integer is required During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/hyeonseongjun/anaconda3/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 2525, in get_loc return self._engine.get_loc(key) File "pandas/_libs/index.pyx", line 421, in pandas._libs.index.DatetimeEngine.get_loc File "pandas/_libs/index.pyx", line 459, in pandas._libs.index.DatetimeEngine.get_loc File "pandas/_libs/index.pyx", line 465, in pandas._libs.index.DatetimeEngine._date_check_type KeyError: '2016-02-25' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "pandas/_libs/index.pyx", line 457, in pandas._libs.index.DatetimeEngine.get_loc File "pandas/_libs/hashtable_class_helper.pxi", line 811, in pandas._libs.hashtable.Int64HashTable.get_item TypeError: an integer is required During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/hyeonseongjun/anaconda3/lib/python3.6/site-packages/pandas/core/indexes/datetimes.py", line 1435, in get_loc return Index.get_loc(self, key, method, tolerance) File "/Users/hyeonseongjun/anaconda3/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 2527, in get_loc return self._engine.get_loc(self._maybe_cast_indexer(key)) File "pandas/_libs/index.pyx", line 421, in pandas._libs.index.DatetimeEngine.get_loc File "pandas/_libs/index.pyx", line 459, in pandas._libs.index.DatetimeEngine.get_loc File "pandas/_libs/index.pyx", line 465, in pandas._libs.index.DatetimeEngine._date_check_type KeyError: '2016-02-25' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "pandas/_libs/index.pyx", line 449, in pandas._libs.index.DatetimeEngine.get_loc File "pandas/_libs/hashtable_class_helper.pxi", line 811, in pandas._libs.hashtable.Int64HashTable.get_item File "pandas/_libs/hashtable_class_helper.pxi", line 817, in pandas._libs.hashtable.Int64HashTable.get_item KeyError: 1456358400000000000 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/hyeonseongjun/anaconda3/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 2525, in get_loc return self._engine.get_loc(key) File "pandas/_libs/index.pyx", line 421, in pandas._libs.index.DatetimeEngine.get_loc File "pandas/_libs/index.pyx", line 451, in pandas._libs.index.DatetimeEngine.get_loc KeyError: Timestamp('2016-02-25 00:00:00') During handling of the above exception, another exception occurred: Traceback (most recent call last): File "pandas/_libs/index.pyx", line 449, in pandas._libs.index.DatetimeEngine.get_loc File "pandas/_libs/hashtable_class_helper.pxi", line 811, in pandas._libs.hashtable.Int64HashTable.get_item File "pandas/_libs/hashtable_class_helper.pxi", line 817, in pandas._libs.hashtable.Int64HashTable.get_item KeyError: 1456358400000000000 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/hyeonseongjun/anaconda3/lib/python3.6/site-packages/pandas/core/indexes/datetimes.py", line 1444, in get_loc return Index.get_loc(self, stamp, method, tolerance) File "/Users/hyeonseongjun/anaconda3/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 2527, in get_loc return self._engine.get_loc(self._maybe_cast_indexer(key)) File "pandas/_libs/index.pyx", line 421, in pandas._libs.index.DatetimeEngine.get_loc File "pandas/_libs/index.pyx", line 451, in pandas._libs.index.DatetimeEngine.get_loc KeyError: Timestamp('2016-02-25 00:00:00') During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/hyeonseongjun/Desktop/inflearn/section2/test/bnmva23-1/download4-7-3.py", line 24, in <module> print(df_app.ix['2016-02-25']) File "/Users/hyeonseongjun/anaconda3/lib/python3.6/site-packages/pandas/core/indexing.py", line 127, in __getitem__ return self._getitem_axis(key, axis=axis) File "/Users/hyeonseongjun/anaconda3/lib/python3.6/site-packages/pandas/core/indexing.py", line 1108, in _getitem_axis return self._get_label(key, axis=axis) File "/Users/hyeonseongjun/anaconda3/lib/python3.6/site-packages/pandas/core/indexing.py", line 145, in _get_label return self.obj._xs(label, axis=axis) File "/Users/hyeonseongjun/anaconda3/lib/python3.6/site-packages/pandas/core/generic.py", line 2344, in xs loc = self.index.get_loc(key) File "/Users/hyeonseongjun/anaconda3/lib/python3.6/site-packages/pandas/core/indexes/datetimes.py", line 1446, in get_loc raise KeyError(key) KeyError: '2016-02-25' 에러메세지인데요 혹시나 해서 복붙해봤는데 역시나 마찬가지입니다

  • python
  • 웹-크롤링
TV 으악맨 (읅!) 댓글 2 좋아요 0 조회수 673

함수들을 배열에 저장하는 부분에서 let i로 선언한 값들이 어떻게 함수내에 저장되는지 잘 이해가 안갑니다.

미해결

Javascript ES6+ 제대로 알아보기 - 초급

let funcs = [] for (let i = 0; i < 10; i++) { funcs.push(function() { console.log(i) }) } funcs.forEach(function(f) { f() }) forEach로 f함수를 실행시키는 부분에서 i의 스코프가 어디서 살아 있는 건가요? 제가 이해하기로는 funcs = [ ..., function() { console.log(i) }, ...]로 i에 대한 값은 없이 함수만 저장되어 있고 forEach로 실행시키는 부분에서는 for문 밖에서 실행시키기 때문에 for 문의 스코프에 영향을 받지 않을 것이라 예상되는데 만약 i가 for 문의 스코프에 영향을 받는다면 어떤 방식으로 받는 것인지, 그것이 왜 메모리 측면에서 효율적인지 알고 싶습니다!

  • es6
  • javascript
hyuk22 댓글 3 좋아요 2 조회수 340

topology_interface 단축키

미해결

3dsmax 초급부터 전문가까지 - 한방에 끝내는 3dsmax 강좌

안보여서 설정을 못했어요..

  • 3ds-max
- beanpect 댓글 1 좋아요 0 조회수 266

pip install requests

해결됨

파이썬으로 구현하는 거래 자동화 봇 (챗봇)

Pycharm terminal 에서 pip install requests 라고 입력하면 아래와 같이 나옵니다. 이미 설치가 되었다는 것 같은데... 그리고 메인창에 import requests 를 입력하면 아무것도 안나오는데요. -------------------------------------------------------- Microsoft Windows [Version 10.0.17763.437] (c) 2018 Microsoft Corporation. All rights reserved. (base) C:\Users\USER\PycharmProjects\autobot>pip install requests Requirement already satisfied: requests in c:\anaconda3\lib\site-packages (2.21.0) Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\anaconda3\lib\site-packages (from requests) (3.0.4) Requirement already satisfied: certifi>=2017.4.17 in c:\anaconda3\lib\site-packages (from requests) (2019.3.9) Requirement already satisfied: urllib3<1.25,>=1.21.1 in c:\anaconda3\lib\site-packages (from requests) (1.24.1) Requirement already satisfied: idna<2.9,>=2.5 in c:\anaconda3\lib\site-packages (from requests) (2.8)

  • python
  • chatbot
이동희 댓글 1 좋아요 0 조회수 375

왜 node 환경과 브라우저 환경에서 전역 this의 동작이 다른가요?

미해결

Javascript ES6+ 제대로 알아보기 - 초급

강의 중간에 나온 함수에서 `this.value = 3`이 브라우저 환경에선 window.value로 할당되는 반면 노드 환경에서는 왜 그렇게 동작하지 않는지 궁금합니다.

  • javascript
  • es6
hyuk22 댓글 6 좋아요 0 조회수 575

npm start 후 error

미해결

Node.js로 웹 크롤링하기

UnhandledPromiseRejectionWarning: SequelizeConnectionError: Client does not support authentication protocol requested by server; consider upgrading MySQL client 이런 오류가 생기는데, 어떤게 문제인지 모르겠습니다. 원래 강의대로라면 crawler schema에 table이 생겨야하는데, 위 오류가 발생합니다. mysql 설치시 validation을 설치했는데 그거 때문에 생긴 문제일까요? 코드는 다음 코드에서 돌렸습니다. const puppeteer = require ( "puppeteer" ); const dotenv = require ( "dotenv" ); const db = require ( "./models" ); dotenv . config (); const crawler = async () => { await db . sequelize . sync (); try { let browser = await puppeteer . launch ({ headless: false , args: [ "--window-size=1920,1080" , "--disable-notifications" ] }); let page = await browser . newPage (); await page . setViewport ({ width: 1080 , height: 1080 }); await page . goto ( "http://spys.one/free-proxy-list/KR/" ); const proxies = await page . evaluate (() => { const ips = Array . from ( document . querySelectorAll ( "tr > td:first-of-type > .spy14" ) ). map ( v => v . textContent . replace ( /document \. write \( . +\) / , "" )); const types = Array . from ( document . querySelectorAll ( "tr > td:nth-of-type(2)" ) ) . slice ( 5 ) . map ( v => v . textContent ); const latencies = Array . from ( document . querySelectorAll ( "tr > td:nth-of-type(6) .spy1" ) ). map ( v => v . textContent ); return ips . map (( v , i ) => { return { ip: v , type: types [ i ], latency: latencies [ i ] }; }); }); const filtered = proxies . filter ( v => v . type . startsWith ( "HTTP" )) . sort (( p , c ) => p . latency - c . latency ); await Promise . all ( filtered . map ( async v => { return db . Proxy . upsert ({ ip: v . ip , type: v . type , latency: v . latency }); }) ); await page . close (); await browser . close (); const fastestProxies = await db . Proxy . findAll ({ order: [[ "latency" , "ASC" ]] }); browser = await puppeteer . launch ({ headless: false , args: [ "--window-size=1920,1080" , "--disable-notifications" , `--proxy-server= ${ fastestProxies [ 0 ]. ip } ` ] }); const browser2 = await puppeteer . launch ({ headless: false , args: [ "--window-size=1920,1080" , "--disable-notifications" , `--proxy-server= ${ fastestProxies [ 1 ]. ip } ` ] }); const browser3 = await puppeteer . launch ({ headless: false , args: [ "--window-size=1920,1080" , "--disable-notifications" , `--proxy-server= ${ fastestProxies [ 2 ]. ip } ` ] }); // const context = await browser.createIncognitoBrowserContext(); // const context2 = await browser.createIncognitoBrowserContext(); // const context3 = await browser.createIncognitoBrowserContext(); // console.log(await browser.browserContexts()); const page1 = await browser . newPage (); const page2 = await browser2 . newPage (); const page3 = await browser3 . newPage (); await page1 . goto ( "https://search.naver.com/search.naver?sm=top_hty&fbm=1&ie=utf8&query=%EB%82%B4+%EC%95%84%EC%9D%B4%ED%94%BC" ); await page2 . goto ( "https://search.naver.com/search.naver?sm=top_hty&fbm=1&ie=utf8&query=%EB%82%B4+%EC%95%84%EC%9D%B4%ED%94%BC" ); await page3 . goto ( "https://search.naver.com/search.naver?sm=top_hty&fbm=1&ie=utf8&query=%EB%82%B4+%EC%95%84%EC%9D%B4%ED%94%BC" ); // page = await browser.newPage(); // await page.goto('https://search.naver.com/search.naver?sm=top_hty&fbm=1&ie=utf8&query=%EB%82%B4+%EC%95%84%EC%9D%B4%ED%94%BC'); // await page.waitFor(10000); // await page.close(); // await browser.close(); await db . sequelize . close (); } catch ( e ) { console . error ( e ); } }; crawler ();

  • nodejs
  • javascript
  • 웹-크롤링
  • puppeteer
이재형 댓글 2 좋아요 0 조회수 236

강의 소리가 너무 작아요

미해결

자바 스프링 프레임워크(renew ver.) - 신입 프로그래머를 위한 강좌

카페에서 노트북으로 듣고 있는데 이강의는 무소음 장소에서 듣는 용도 인가요?

  • java
  • spring
핵심국사 댓글 5 좋아요 18 조회수 1551

강의 예제 파일

미해결

실전 HTML & CSS 강좌

강의 예제 파일을 첨부해주시면 좋겠는데... 불가한가요?

  • HTML/CSS
문성심 댓글 0 좋아요 0 조회수 167

질문입니다

미해결

리눅스 시스템 프로그래밍 - 이론과 실습

혹시 개인적으로 리눅스 분야 관련해서 여쭤봐도 될까요?? 취업진로긴합니다..

  • linux
젓인 댓글 1 좋아요 0 조회수 141

길이 이동이 어렵네요 ㅠㅠ

미해결

리눅스 시스템 프로그래밍 - 이론과 실습

저 프로그램은 결국 buf가 EOF까지가면 끝나는 프로그램이군요...

  • linux
젓인 댓글 1 좋아요 0 조회수 142

for 문에서 invalid syntax

해결됨

프로그래밍, 데이터 과학을 위한 파이썬 입문

for i in range(i, 10): i <10 i += 1 print(i) 이렇게 했을 때 invalid syntax 가 나는 이유가 i 가 for 문 안에 있어서 그 밖으로 나오면 모르는 값이라고 해서 그런 건가요?

  • bigdata
  • python
박미나 댓글 2 좋아요 0 조회수 618

for 문

해결됨

프로그래밍, 데이터 과학을 위한 파이썬 입문

for i in range(i, 10): i < 10 i += 1 print(i) 이렇게 하니까 True 2 True 3 True 4 True 5 True 6 True 7 True 8 True 9 True 10 이렇게 나오던데 왜 True 가 나오는 건가요?

  • bigdata
  • python
박미나 댓글 1 좋아요 0 조회수 185

수업자료 관련 질문

미해결

디자인 1도 몰라도 쉽게 배우는 Sketch App 모바일 UI 디자인 [초급]

예제파일은 어디서 다운받을 수 있나요?

  • sketch
  • 모바일-디자인
강민준 댓글 0 좋아요 0 조회수 151

태그 단축키

미해결

CSS 기본부터 활용까지

#small+#large 적고 바로 태그로 만드는 단축키가 있나요??

  • HTML/CSS
정재욱[음악학부] 댓글 0 좋아요 0 조회수 336

토큰 갱신 질문드립니다.

미해결

스프링 기반 REST API 개발

강의자료 38. 이벤트 API 점검 의 토큰 갱신하기 입니다. 폼의 token 이 refresh_token 으로 수정되어야 하지 않을까 하는 생각에 글을 남깁니다. 토큰 재발급 POST :: http://localhost:8081/oauth/token -> 500 Error { " error " : "server_error" , " error_description " : "Internal Server Error" } -> 200 OK { " access_token " : "d1110be3-1603-4724-9aa1-54b990fa2cb5" , " token_type " : "bearer" , " refresh_token " : "653c38ac-f000-4955-9e01-06bc29d4be77" , " expires_in " : 591 , " scope " : "read write" }

  • spring
  • java
  • rest-api
황준오 댓글 1 좋아요 0 조회수 354

password 입력 불가

미해결

트렐로 개발로 배우는 Vuejs, Vuex, Vue-Router 프론트엔드 실전 기술

'password'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다. 라는 문장이 뜹니다

  • javascript
  • vuejs
민첩한 문어 댓글 3 좋아요 1 조회수 517

소스코드가 작성이 되어져서 동강이 시작 됩니다.

미해결

iOS12 앱 개발 퍼펙트 가이드

1. Stop Watch 2_2에서 2_3강의로 진행 될때... startStopButton클릭시 실행되는 소스코드가 거의 작성되어 있는 상태에서 동강이 시작 됩니다. 2. SearchBar 3_2도 Storyboard에서 어느정도 진행된 상태에서 동강이 시작 됩니다. 확인 부탁 드려요

  • swift
  • ios
vampireahn 댓글 2 좋아요 0 조회수 209

인기 태그

인프런 TOP Writers

주간 인기글