Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嘿,我正在尝试提取此链接:
https://aulib.abdn.ac.uk:443/F/PEYK3FS2A56KCUKNUE2DNC111QPYC4T1AIPEQ3VP7VXK27HHFM-41314?func=short-sort&set_number=010039
由此
我试过使用:
Elements headings = doc.select("th:eq(2)");
但这似乎是为了重新连接整条线路,而不仅仅是链接。我的问题是如何只提取链接?
谢谢
尝试doc.select("th:eq(2) > a").first().attr("href")
doc.select("th:eq(2) > a").first().attr("href")