从javascript onClick超链接获取内容 [英] Get content from javascript onClick hyperlink

查看:258
本文介绍了从javascript onClick超链接获取内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从网站中获取内容,该网站在超链接中使用"onClick"而不是"href",因此,尽管您看到的是页面,但网址始终是相同的.

I'm trying to get the content from a website, that uses "onClick" instead of "href" in hyperlinks, so the url is always the same, despite of the page you are seeing.

http://www.sas.ul.pt/index.php

这是网站,我想要获取的内容在Alimentação">"Estudantes"中.

This is the website, and the content i'm trying to get is inside "Alimentação" > "Estudantes".

<a href="#" onclick="return go('','4;02');" title="Estudantes">Estudantes</a>

使用Jsoup可以吗?

Is this possible with Jsoup?

推荐答案

Jsoup.connect(url).data("nav", "index@4;02", "opt", "4;02", "chvP", "127").post();

这篇关于从javascript onClick超链接获取内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆