메뉴 건너뛰기

Cloudera, BigData, Semantic IoT, Hadoop, NoSQL

Cloudera CDH/CDP 및 Hadoop EcoSystem, Semantic IoT등의 개발/운영 기술을 정리합니다. gooper@gooper.com로 문의 주세요.


java/jsp jsoup 사용 예제

총관리자 2014.06.06 13:50 조회 수 : 4337

문자열 : <table width="100%" align="center"/>


1. table의 width=100% OR align=center만 추출하는 경우

  Document document =Jsoup.parse(htmlString);

                  document.select("table[width=100%],table[align=center]");


2. AND 연산(width=100%이고 align=center인 경우)

가. Elements tables = document.select("table[width=100%]").select("table[align=center]");

나. Elements element =document.select("table[align=center]");

                    element =element.select("table[width=100%]");


3. AND 연산(width=100%이고 align=center이고 table안에 문자열이 text인 경우)

  Elements tables = document.select("table[width=100%].select("table[align=center]:contains(text)");

번호 제목 날짜 조회 수
670 Hive+mysql 설치 및 환경구축하기 file 2013.03.07 5123
669 [oozie]Oozie WF수행시 단계별 ID넘버링 비교/설명 2022.03.23 5116
668 hue db에서 사용자가 가지는 정보 확인 2020.02.10 5106
667 TLS/SSl설정시 방법및 참고 사항 2021.10.08 5105
666 hive job실행시 meta정보를 원격의 mysql에 저장하는 경우 설정방법 2014.05.28 5098
665 HBase 설치하기 – Pseudo-distributed file 2013.03.12 5095
664 kudu rebalance수행 command예시 2022.01.17 5085
663 VisualVM 1.3.9을 이용한 spark-submit JVM 모니터링을 위한 설정및 spark-submit실행 옵션 2016.10.28 5082
662 Master rejected startup because clock is out of sync 오류 해결방법 2016.05.03 5075
661 List<Map<String, String>>형태의 데이타에서 중복제거 하는 방법 2016.12.23 5067
660 Kudu tablet이 FAILED일때 원인 확인 방법 2022.01.17 5065
659 hadoop cluster에 포함된 노드중에서 문제있는 decommission하는 방법및 절차 file 2017.12.28 5060
658 Mysql DB 생성 및 권한. 특정아이피, 대역에 대한 접근 허용 2017.05.04 5059
657 json으로 존재하는 데이터 parsing하기 2019.03.25 5054
656 python test.py실행시 "ImportError: No module named pyspark" 혹은 "ImportError: No module named py4j.protocol"등의 오류 발생시 조치사항 2017.07.04 5029
655 build.gradle을 pom.xml로 변환하는 방법 2016.08.18 5019
654 https용 인증서 발급 명령문 예시및 오류 메세지 2018.01.24 5018
653 [CDP7.1.7, Hive Replication]Hive Replication진행중 "The following columns have types incompatible with the existing columns in their respective positions " 오류 2023.12.27 5008
652 kafka-manager 1.3.3.4 설정및 실행하기 2017.03.20 4980
651 os가 windows7인 host pc에서 ubuntu가 os인 guest pc에 접근하기 위한 네트워크설정 2014.04.20 4975
위로