개발 & IT/개발 라이프 & 팁 (14) 썸네일형 리스트형 [python] 파이썬 기초 - 웹 스크래퍼 간단 예제 파이썬 설치 Linux : sudo apt-get update sudo apt-get install python3 requests 라이브러리 설치 pip install requests Beautiful Soup 라이브러리 설치 pip install beautifulsoup4 웹 크롤링 예제 코드 작성 import requests from bs4 import BeautifulSoup url = 'https://news.naver.com' response = requests.get(url) # HTML 파싱 soup = BeautifulSoup(response.text, 'html.parser') # 뉴스 제목 추출 news_titles = soup.select('.cjs_t') print('start') .. [AWS-EC2] ufw 활성화 후 connection time out 문제 방화벽 특정포트 활성화 후 포트가 안열리기에 ufw를 활성화하는 삽질을 해서 멀쩡히 잘되던 ssh가 안되는 문제 발생 ec2 서버 중지 후 작업 > 인스턴스 설정 > 사용자 데이터 편집 으로 들어가서 아래와 같이 ufw를 비활성화 해준다. Content-Type: multipart/mixed; boundary="//" MIME-Version: 1.0 --// Content-Type: text/cloud-config; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="cloud-config.txt" #cloud-config cloud_final_modules.. [GIT] vscode git auto login(git credential) 설정 https://git-scm.com/docs/git-credential-store Git - git-credential-store DocumentationIf not set explicitly with --file, there are two files where git-credential-store will search for credentials in order of precedence: ~/.git-credentials User-specific credentials file. $XDG_CONFIG_HOME/git/credentials Second user-specific credentials file.git-scm.com$ git config credential.helper store위와 같이 설정 .. [AI 자동투자 봇] 키움증권 KOA 스튜디오 api 접속 오류 키움증권에서 제공하는 KOA 스튜디오를 실행하여 접속 후 업데이트가 실행되고 난 뒤에 스튜디오 프로그램을 재실행할 경우 오류가 발생하였다. [open api를 실행할 수 없습니다. ocx등록을 확인해주시길 바랍니다.] 위와 같은 오류가 발생하며 접속이 되지 않는다. 키움증권의 Q&A를 검색해보면 OpenAPI가 없을 때 발생하니 설치하라는 답변만 있는 상태. OpenAPI는 이미 설치되어 있다. 별로 도움 안됨. 구글링으로 OpenAPI설치 폴더의 opversionup을 실행 후 다시 스튜디오 접속하면 된다는 해결책을 찾았다. 접속 잘 된다. https://howtoworld.tistory.com/24 KOA Studio실행시 OpenAPI OCX 오류 opstarter "버전처리를 받으시려면 현재 실행.. [IOS/Swift] 앱 심사 거절 사유 - Guideline 2.1 - Performance - App Completeness We're looking forward to completing our review, but we are unable to continue because your app crashed during review. Please review the details below and the attached crash logs, then complete the next steps. Steps leading to crash: 1. Launched the app 2. Entered ID and Password and tapped the login 3. Tapped “마이페이지” button 4. Chose “1:1 문의” 5. Tapped “Choose File” 6. Chose “Take Photo or video”.. [IOS/Swift] 앱 심사 거절 사유 - 4.2.0 Design: Minimum Functionality 웹뷰로 구성된 앱을 심사요청하였는데 아래와 같은 메시지를 받았다 Your app provides a limited user experience as it is not sufficiently different from a mobile browsing experience. As such, the experience it provides is similar to the general experience of using Safari. Including iOS features such as push notifications, Core Location, and sharing do not provide a robust enough experience to be appropriate for the App Store. .. 이전 1 2 다음