메뉴 건너뛰기

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)");

번호 제목 날짜 조회 수
670 scan의 startrow, stoprow지정하는 방법 2015.04.08 4970
669 [oozie]Oozie WF수행시 단계별 ID넘버링 비교/설명 2022.03.23 4967
668 oozie의 meta정보를 mysql에서 관리하기 2014.05.26 4965
667 hadoop설치시 오류 2013.12.18 4964
666 hbase shell에서 컬럼값 검색하기(SingleColumnValueFilter이용) 2014.04.25 4961
665 W/F수행후 Logs not available for 1. Aggregation may not to complete. 표시되며 로그내용이 보이지 않은 경우 2020.05.08 4959
664 Spark 2.1.1 clustering(5대) 설치(YARN기반) 2016.04.22 4957
663 db를 통째로 새로운 이름의 db로 복사하는 방법/절차 2017.11.14 4941
662 메이븐 (maven) 설치 및 이클립스 연동하기 file 2013.03.06 4940
661 [CDP7.1.7]BDR작업후 오류로 Diagnostic Data를 수집하는 동안 "No content to map due to end-of-input at [Source: (String)""; line: 1, column: 0]" 오류 발생시 조치 2024.02.20 4930
660 TLS/SSl설정시 방법및 참고 사항 2021.10.08 4925
659 kafka-manager 1.3.3.4 설정및 실행하기 2017.03.20 4910
658 [보안/인증]javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target발생 원인/조치내용 2023.10.24 4902
657 갑자기 DataNode가 java.io.IOException: Premature EOF from inputStream를 반복적으로 발생시키다가 java.lang.OutOfMemoryError: Java heap space를 내면서 죽는 경우 조치방법 2017.07.19 4902
656 [HA구성 이슈]oozie 2대를 L4로 HA구성했을때 발생하는 이슈 2023.01.17 4901
655 Cacti로 Hadoop 모니터링 하기 file 2013.03.12 4901
654 oozie에서 share lib설정시 action type별로 구분하여 넣을것 2014.04.18 4899
653 Kudu tablet이 FAILED일때 원인 확인 방법 2022.01.17 4892
652 Mysql DB 생성 및 권한. 특정아이피, 대역에 대한 접근 허용 2017.05.04 4874
651 banana pi에 hive 0.13.1+mysql(metastore)설치 file 2014.09.09 4856
위로