package com.ksfzhaohui.download; import java.io.File; import java.util.ArrayList; import java.util.List; import org.apache.http.impl.client.DefaultHttpClient; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.select.Elements; import com.ksfzhaohui.util.ConnectionUtil; public class BudejieDownload extends Download { /** 百思不得姐网页根目录 */ private static final String BUDEJIE_ROOT = "http://www.budejie.com/jie/tag_list"; @Override public List<PicInfo> getImgUrlList(int currentPage, DefaultHttpClient client) { List<PicInfo> picInfoList = new ArrayList<PicInfo>(); String pageContext = ConnectionUtil.getResultByUrl(BUDEJIE_ROOT + "-" + chapter.getTag() + "-" + currentPage + "-1456761.html", client); Document doc = Jsoup.parseBodyFragment(pageContext); Elements es = doc .select("div#entry-list div div p.web_pic a[target=_blank] img[src]"); Elements titleEs = doc.select("div#entry-list div div p.web_size"); PicInfo picInfo = null; for (int i = 0; i < es.size(); i++) { picInfo = new PicInfo(es.get(i).attr("src"), titleEs.get(i).text() .trim()); picInfoList.add(picInfo); } return picInfoList; } @Override protected String getRelativePath(PicInfo picInfo) { return "百思不得姐" + File.separator + chapter.getName(); } }

dafeiyu LV10
2020年7月4日
相思入骨 LV11
2020年4月9日
wei112233 LV15
2020年2月2日
dmx12345 LV2
2019年7月1日
再回首丶白了头 LV1
2019年6月6日
dvd速度 LV9
2019年6月2日
skystory LV11
2019年4月27日
飞翔的企鹅嗯嗯 LV11
2019年1月30日
chinafjfzlj LV31
2018年12月26日
lris_luanling LV11
2018年11月28日

adminLi LV2
2024年1月10日
ljt289917726 LV3
2023年12月18日
xingxing1234 LV10
2023年3月22日
best2018 LV46
2022年10月24日
mq13947193109 LV19
2022年7月5日
SZEPEZS LV9
2022年6月10日
zfbbnp LV1
2022年6月6日
qiaofu22 LV4
2022年6月3日
yangsha868 LV9
2021年8月13日
°Freedom
2021年4月21日
暂无贡献等级