메뉴 건너뛰기

Cloudera, BigData, Semantic IoT, Hadoop, NoSQL

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


java/jsp jsoup 사용 예제

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

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

번호 제목 날짜 조회 수
152 마이바티스(MyBatis)쿼리로그 출력및 정렬하기 2015.12.01 4418
151 sparql에서 concat에제 2015.11.27 3098
150 Runtime.getRuntime().exec(cmd) sample 소스 2015.11.19 2727
149 Resource temporarily unavailable(자원이 일시적으로 사용 불가능함) 오류조치 2015.11.19 12056
148 mybais #과 $의 차이점 2015.11.10 3806
147 Mybatis foreach 문법정리(상황에 따른 사용법) 2015.11.10 5796
146 DB별 JDBC 드라이버 2015.10.02 4309
145 root계정으로 MariaDB설치후 mysql -u root -p로 db에 접근하여 바로 해줘야 하는일..(케릭터셑은 utf8) 2015.10.02 3817
144 SQL문장과 Mongo에서 사용하는 명령어를 비교한 것입니다. 2015.09.30 4211
143 mongodb 2.6.6 설치(64bit) 2015.09.30 2699
142 pom.xml에서 build.gradle로 변환 2015.09.14 3327
141 부팅을 외장하드에서 하도록 변경하는 방법 2015.07.28 3522
140 바나나 파이의 /tmp폴더를 외장하드로 변경하기 2015.07.24 3144
139 Tracking URL = N/A 가발생하는 경우 - 환경설정값을 잘못설정하는 경우에 발생함 2015.06.17 4701
138 java.lang.RuntimeException: org.apache.hadoop.hive.ql.metadata.HiveException: Hive Runtime Error: Unable to deserialize reduce input key from...오류해결방법 2015.06.16 6259
137 hortonworks에서 제공하는 메모리 설정값 계산기 사용법 file 2015.06.14 4327
136 Exception in thread "main" java.lang.NoSuchMethodError: org.apache.hadoop.http.HttpConfig.getSchemePrefix()Ljava/lang/String; 해결->실패 2015.06.14 2713
135 hadoop 2.6.0에 sqoop2 (1.99.5) server및 client설치 == fail 2015.06.11 4946
134 "File /user/hadoop/share/lib does not exist" 오류 해결방법 2015.06.07 4521
133 Error: E0501 : E0501: Could not perform authorization operation, User: hadoop is not allowed to impersonate hadoop 해결하는 방법 2015.06.07 4470
위로