package com.zyzx.jsoup;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
public class MySpider01 {
public static void main(String[] args) throws IOException {
Document doc;
String detailUrl = null;
String shopName = null;
doc = Jsoup.connect("http://www.runoob.com/w3c/w3c-html.html").userAgent(
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36")
.timeout(10000).get();
Elements listElements = doc.select("ul.double-li> li");
for (Element element : listElements) {
shopName