我获取了网址:https://www.ixigo.com/medical-shops-pharmacy-dispensary-in-at-around-near-india-lp-1475537,但是我的问题是我想获取所有医疗店的详细信息,包括“ SHOW MORE Button”。
这是我的代码:-
detector = get_frontal_face_detector()
predictor=shape_predictor('shape_predictor_68_face_landmarks.dat')
rects = detector(gray, 1)
for (i, rect) in enumerate(rects):
shape = predictor(gray, rect)
shape = face_utils.shape_to_np(shape)
(k, j) = face_utils.FACIAL_LANDMARKS_IDXS["mouth"]
for (x, y) in shape[k:j]:
我的代码仅显示前15名医疗商店。解决我的问题
这是我的代码:-
public static void main(String args[])throws IOException {
Document doc=Jsoup.connect("https://www.ixigo.com/medical-shops-pharmacy-dispensary-in-at-around-near-india-lp-1475537").get();
Elements ele=doc.select("div.namedentity-item.row");
for(Element element:ele) {
System.out.println(element.getElementsByTag("a").attr("href"))
System.out.println(element.getElementsByClass("ne-title").text());
System.out.println(element.getElementsByClass("ne-address").text());
}
}
我的代码仅显示前15名医疗商店。解决我的问题