Skip to content

Instantly share code, notes, and snippets.

@v0o0v
Created May 12, 2017 07:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save v0o0v/5f62980d4c74405ec12081dbf825abe8 to your computer and use it in GitHub Desktop.
Save v0o0v/5f62980d4c74405ec12081dbf825abe8 to your computer and use it in GitHub Desktop.
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