본문 바로가기

Web

[python] BeautifulSoup 파이썬을 이용한 웹 크롤링 시 데이터 추출하기 위한 함수 requests 설치 pip install requests BeautifulSoup 설치 pip install beautifulsoup4 파이썬에서 기본 내장함수가 아니라서 import 필요 import requests from bs4 import eautifulSoup 사용법 import requests from bs4 import BeautifulSoup url = 'https://naver.com' res = requests.get(url) if res.status_code == 200: html = res.text soup = BeautifulSoup(html, 'html.parser') print(soup) else : print(res...
[Java] 넘버링 넘버링(Numbering) 방법 - '01', '02'... '10', '11'.... substring 메소드를 사용 substring(인자1, 인자2) 인자1 > 시작지점 index 인자2 > 끝지점 index 두자리 넘버링 두자리 넘버링의 경우 최소 두자리를 표현해야 하기 위해 숫자 앞에 "0"을 붙임 두자리 넘버링을 위해 문자열 뒤에서 2자리만 추출 세자리 넘버링의 경우는 숫자 앞에 "00"을 붙이고 문자열 뒤에서 3자리만 추출 함 // 두자리 for(int i = 0; i < 100; i++) { String str = "0" + i; System.out.println(str.substring(str.length() - 2, str.length()); } // 세자리 for(int i = 0; ..
[Highcharts] 사용자 버튼 내보내기 버튼 숨기기 사용자 버튼 활성화 여부 chart= Highcharts.chart('container', { chart: { type: 'pie', events: { //load: function () { console.log(this) }, drilldown: function() { if (this.series[0].options._levelNumber != 1 ) { /* hide thirdbutton */ this.exportSVGElements[4].hide(); } //chart.redraw(); // 차트 다시 그리기 }, drillup: function(u) { if (this.series[0].options._levelNumber == 1 ) { /* show thirdbutton ..
[Web] 유용한 사이트 ※ 포트 오픈 확인 https://lamanus.kr/ports?_gl=1*cxlqut*_ga*YW1wLW4wY3RuXzdMZHVoaEtCZTVOa1ktM1E https://www.yougetsignal.com/tools/open-ports/ Open Port Check Tool - Test Port Forwarding on Your Router www.yougetsignal.com ※ DNS 확인 https://krnic.or.kr/jsp/business/operate/dnsModify.jsp 한국인터넷정보센터(KRNIC) 도메인 소개, 등록 및 사용, IP주소, AS번호, DNS 정보, 관련규정 제공 xn--3e0bx5euxnjje69i70af08bea817g.xn--3e0b707e ※ JavaScr..
[jQuery] 무료 차트(chart) 플러그인 정리 무료 차트(chart) 플러그인 1. chart.js https://www.chartjs.org/ Chart.js | Open source HTML5 Charts for your website New in 2.0 New chart axis types Plot complex, sparse datasets on date time, logarithmic or even entirely custom scales with ease. www.chartjs.org 2. 구글차트 https://developers.google.com/chart Charts | Google Developers Interactive charts for browsers and mobile devices. developers.google.com..
[Web] 소스 코드 정렬해주는 사이트 정보 http://tools.arantius.com/tabifier Tools - Tabifier (HTML and CSS code beautifier) - arantius.com Tabifier The tabifier is a tool to properly indent computer code. The style it produces is a mix of my personal preferences for indentation plus what I could manage to make a program produce from dirty source. The tabifier currently supports CSS, HTML, and tools.arantius.com - JS 정렬해주는 사이트 http://js..
[Javascript] 무료 그리드 라이브러리 정보 - SlickGrid : 대용량 데이터에 적합 https://github.com/6pac/SlickGrid GitHub - 6pac/SlickGrid: A lightning fast JavaScript grid/spreadsheet A lightning fast JavaScript grid/spreadsheet. Contribute to 6pac/SlickGrid development by creating an account on GitHub. github.com - ToastUi Grid https://ui.toast.com/tui-grid TOAST UI :: Make Your Web Delicious! The TOAST UI Is Free Open-source JavaScript UI Librari..
[Tomcat] Spring Profile 지정하기 tomcat/bin 디렉토리 - Linux setenv.sh 파일 생성 후 아래와 같이 작성 JAVA_OPTS="$JAVA_OPTS -Dspring.profiles.active={profile_name}" - Window setenv.bat 파일 생성 후 아래와 같이 작성 JAVA_OPTS=%JAVA_OPTS% -Dspring.profiles.active={profile_name}