메뉴 건너뛰기

Cloudera, BigData, Semantic IoT, Hadoop, NoSQL

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


java/jsp jsoup 사용 예제

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

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

번호 제목 날짜 조회 수
661 다중 모듈 프로젝트 설정에 대한 설명 2016.09.21 170
660 [CDP7.1.7]EncryptionZone에 table생성및 권한 테스트 2023.09.26 172
659 [CDP7.1.7]Encryption Zone내부/외부 간 데이터 이동(mv,cp)및 CTAS, INSERT SQL시 오류(can't be moved into an encryption zone, can't be moved from an encryption zone) 2023.11.14 172
658 서버 5대에 solr 5.5.0 설치하고 index data를 HDFS에 저장/search하도록 설치/설정하는 방법 2016.04.08 173
657 jena의 data폴더를 hadoop nfs를 이용하여 HDFS상의 폴더에 마운트 시키고 fuseki를 통하여 inert를 시도했을때 transaction 오류 발생 2016.12.02 174
656 spark 온라인 책자링크 (제목 : mastering-apache-spark) 2016.05.25 176
655 테이블의 row수를 빠르게 카운트 하는 방법 2017.01.26 176
654 oracle 접속 방식에 따른 --connect 지정 방법 2022.02.11 176
653 [TLS/SSL]Kudu Master 설정하기 2022.05.13 176
652 [Hadoop Encryption] Encryption Zone 생성/설정시 User:hadoop not allowed to do 'DECRYPT_EEK' ON 'testkey' 오류 발생 조치 사항 2023.06.28 176
651 halyard 1.3의 rdf4j-server.war와 rdf4j-workbench.war를 tomcat deploy후 조회시 java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/Cell발생시 조치사항 2017.07.05 177
650 lagom-windows용 build.sbt파일 내용 2017.10.12 178
649 Authorization within Hadoop Projects 2022.06.13 178
648 Windows에서 sbt개발환경 구축 방법(링크) 2016.06.02 179
647 spark에서 hive table을 읽어 출력하는 예제 소스 2017.03.09 180
646 lombok설치방법 2020.06.20 183
645 java스레드 덤프 분석하기 file 2016.11.03 185
644 hbase startrow와 endrow를 지정하여 검색하기 샘플 2016.12.07 185
643 https://github.com/Merck/Halyard프로젝트 컴파일및 배포/테스트 2017.01.24 185
642 hadoop에서 yarn jar ..를 이용하여 appliction을 실행하여 정상적으로 수행되었으나 yarn UI의 어플리케이션 목록에 나타나지 않는 문제 2017.05.02 185
위로