메뉴 건너뛰기

Cloudera, BigData, Semantic IoT, Hadoop, NoSQL

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


java/jsp jsoup 사용 예제

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

문자열 : <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 메이븐 (maven) 설치 및 이클립스 연동하기 file 2013.03.06 4940
89 db를 통째로 새로운 이름의 db로 복사하는 방법/절차 2017.11.14 4941
88 kafka-manager 1.3.3.4 설정및 실행하기 2017.03.20 4942
87 Spark 2.1.1 clustering(5대) 설치(YARN기반) 2016.04.22 4958
86 W/F수행후 Logs not available for 1. Aggregation may not to complete. 표시되며 로그내용이 보이지 않은 경우 2020.05.08 4960
85 hbase shell에서 컬럼값 검색하기(SingleColumnValueFilter이용) 2014.04.25 4961
84 hadoop설치시 오류 2013.12.18 4964
83 oozie의 meta정보를 mysql에서 관리하기 2014.05.26 4965
82 [oozie]Oozie WF수행시 단계별 ID넘버링 비교/설명 2022.03.23 4968
81 scan의 startrow, stoprow지정하는 방법 2015.04.08 4970
80 Cloudera의 API를 이용하여 impala의 실행되었던 쿼리 확인하는 예시 2018.05.03 5005
79 build.gradle을 pom.xml로 변환하는 방법 2016.08.18 5011
78 HiveServer2인증을 PAM을 이용하도록 설정하는 방법 2018.07.21 5043
77 List<Map<String, String>>형태의 데이타에서 중복제거 하는 방법 2016.12.23 5059
76 Master rejected startup because clock is out of sync 오류 해결방법 2016.05.03 5067
75 kudu rebalance수행 command예시 2022.01.17 5072
74 HBase 설치하기 – Pseudo-distributed file 2013.03.12 5094
73 hive job실행시 meta정보를 원격의 mysql에 저장하는 경우 설정방법 2014.05.28 5098
72 [백업] 리눅스 시스템 백업하기 (Linux System Backup) - TAR 사용 시스템 전체 백업 2022.01.19 5111
71 Hive+mysql 설치 및 환경구축하기 file 2013.03.07 5120
위로