Created
May 12, 2017 07:15
-
-
Save v0o0v/5f62980d4c74405ec12081dbf825abe8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package wc; | |
import org.jsoup.Jsoup; | |
import org.jsoup.nodes.Document; | |
import org.jsoup.nodes.Element; | |
import org.jsoup.select.Elements; | |
public class Clien { | |
public static void main(String[] args) throws Exception { | |
Document doc = Jsoup.connect("http://www.parkoz.com/zboard/zboard.php?id=express_freeboard2").get(); | |
for (int i = 9; i <= 151; i += 2) { | |
System.out.println("=======" + i + "======="); | |
Elements notice = doc.select("body > table > tbody > tr:nth-child(2) > td > table:nth-child(1) > tbody > tr > td > div > table.TBFIX > tbody > tr:nth-child(" + i + ")"); | |
Elements child = notice.get(0).children(); | |
Notice n = new Notice(); | |
Element linkTile = child.get(1); | |
System.out.println("@@@@@@@@@@ "+linkTile); | |
Element time = child.get(3); | |
System.out.println("@@@@@@@@@@ "+time); | |
Element seeTime = child.get(4); | |
System.out.println("@@@@@@@@@@ "+seeTime); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment