형상 맞추기

This commit is contained in:
taesan
2020-03-27 14:48:25 +09:00
parent ce60fba5d4
commit c97c273a2b
2 changed files with 13 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ public class CrawlingTest {
private static void seoul() {
String url = "http://www.seoul.go.kr/coronaV/coronaStatus.do";
String url = "http://news.seoul.go.kr/welfare/archives/513105";
Document doc = null ;
try {
@@ -59,6 +59,7 @@ public class CrawlingTest {
info = info.replaceAll("'", "");
info = info.replaceAll("", "");
info = info.replaceAll("\\?", "");
if(j==0) {
String[] infoSplit = info.split(" ");
@@ -89,7 +90,8 @@ public class CrawlingTest {
PatientsRoute routeVo = new PatientsRoute();
String info = patientRoute.get(k).text();
info = info.replaceAll("\\?", "");
routeVo.setSerialNumber(serialNumber);
routeVo.setRouteSeq(k+1);
routeVo.setRouteDetail(info);
@@ -98,7 +100,7 @@ public class CrawlingTest {
}//for3
}//for 1
// show( 20, patientList, routeList);
show( 20, patientList, routeList);
}// else

View File

@@ -4,6 +4,14 @@ public class Test001 {
public static void main(String[] args) {
String a = "2월 19일13:00 **음식점 → 북가좌2동,남가좌2동, 홍은2동주민센터 → 15:30 가좌보건지소, 북가좌1동주민센터 → **모텔 숙박 →?18:43 편의점";
System.out.println("BEFORE : " + a);
a= a.replaceAll("\\?", "");
System.out.println("AFTER : " + a);
String title = "<div class=\"board-title-text txt\" style=\"max-width: 630px;\">"+ "abcd" + "</div>";
System.out.println(" title : " + title );
String sido = "sido0101";
sido = sido.substring(3,5);
System.out.println(" sido : " + sido );