메뉴 건너뛰기

Cloudera, BigData, Semantic IoT, Hadoop, NoSQL

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


java/jsp jsoup 사용 예제

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

문자열 : <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)");

번호 제목 날짜 조회 수
90 json으로 존재하는 데이터 parsing하기 2019.03.25 5093
89 HBase 설치하기 – Pseudo-distributed file 2013.03.12 5095
88 VisualVM 1.3.9을 이용한 spark-submit JVM 모니터링을 위한 설정및 spark-submit실행 옵션 2016.10.28 5097
87 hive job실행시 meta정보를 원격의 mysql에 저장하는 경우 설정방법 2014.05.28 5099
86 TLS/SSl설정시 방법및 참고 사항 2021.10.08 5105
85 hue db에서 사용자가 가지는 정보 확인 2020.02.10 5106
84 [oozie]Oozie WF수행시 단계별 ID넘버링 비교/설명 2022.03.23 5116
83 Hive+mysql 설치 및 환경구축하기 file 2013.03.07 5124
82 [CDP7.1.3]Ranger WebUI에서 Error! Connection refused: Please check the KMS provider URL and whether the Ranager KMS is running발생시 조치 방법 2023.06.07 5143
81 [백업] 리눅스 시스템 백업하기 (Linux System Backup) - TAR 사용 시스템 전체 백업 2022.01.19 5145
80 의사분산모드에 hadoop설치및 ecosystem 환경 정리 2014.05.29 5170
79 kafka broker기동시 brokerId가 달라서 기동에 실패하는 경우 조치방법 2016.05.02 5190
78 [Solr in Cloudera]Solr Data Directory변경 방법/절차 2023.04.21 5202
77 Windows7 64bit 환경에서 Apache Hadoop 2.7.1설치하기 2017.07.26 5203
76 HiveServer2인증을 PAM을 이용하도록 설정하는 방법 2018.07.21 5205
75 [Kudu]ERROR: Unable to advance iterator for node with id '2' for Kudu table 'impala::core.pm0_abdasubjct': Network error: recv error from unknown peer: Transport endpoint is not connected (error 107) 2023.03.16 5212
74 ping 안될때.. networking restart 날려주면 잘됨.. 2014.05.09 5219
73 Cloudera의 API를 이용하여 impala의 실행되었던 쿼리 확인하는 예시 2018.05.03 5230
72 Hive Query Examples from test code (1 of 2) 2014.03.26 5247
71 [CDP7.1.7]Oozie job에서 ERROR: Kudu error(s) reported, first error: Timed out: Failed to write batch of 774 ops to tablet 8003f9a064bf4be5890a178439b2ba91가 발생하면서 쿼리가 실패하는 경우 2024.01.05 5298
위로