English 中文(简体)
我如何用丁顿语读到这一页的完全的超文本源。
原标题:How do I read the complete HTML source on this page with button "more"

我的网页如下,以探索者,正如你所看到的那样,它涉及的是“交易顶点”和网站列出所有现场贸易记录:

http://www.forexfactory.com/trades.php?reset=1

我通常用on子读到源代码后,通过美化信息加以传播。 然而,就本案而言,正如你所看到的那样,这里是“更”可点击的纽芬兰语,正值班末:

a busy cat http://i.minus.com/ibfq5BgLjta0Lo.jpg

如果我一度点击,贸易清单将一度延长,在此名单末尾再点击。 在两次或三次点击之后,整个清单将全部显示。 那么,我怎么能让金星以方案拟定守则的方式点击更多的人,那么我就可以把贸易记录的全部清单打上钩?

问题如下: 通常,我们可以读到超文本来源,并利用某些平坦技术,使案文信息脱离复杂的标签。 然而,如果你不去看源代码,而是利用你的改动来选择网络的全部内容,那么你就会拿到你们的浏览器中显示的所有案文,而没有复杂的标签。 我认为,收集信息也可以是另一种方式。 然而,这番话似乎只能读到“超文本”来源,而我所说的简单选择整个网络内容的方式是什么,那么我们就有了长篇大的插图,包括没有标语的全文?

祝!

最佳回答

基本点点击more a X-Requested-With: XMLHttpRequest的头盔。 也可以使用火法英字母代码添加。 这意味着正在提出亚克斯请求。

因此,你基本上有两个选择:

(1) 观察点击<代码>more的圆形,并在你的代码中使用。

2) 可在<条码>python-spidermonkey 模块上测试,目的是从python中执行javascript。

and you can also use Selenium. It’s a library that allows you to control a real web browser from your language of choice.

问题回答

利用Webkits开发商工具(网络,具体地说),我们可以看到,点击更多的实际电话:http://www.forex Factory.com/flex.php?do=savestate&flexId=flex_explorer_tradeActative&more=1。 如果我们再次点击,则在<代码>上加上“2” 。

如果我们看一下这些答复,我们就获得一些包含信息的信息的JSON数据,以便输入网页。 您的工作是将这一信息(在从网页上删除的数据之上)用于获取一整套数据。 不幸的是,除非你建立这种网络,否则我就想到在被点击后实际上获得超文本。





相关问题
Can Django models use MySQL functions?

Is there a way to force Django models to pass a field to a MySQL function every time the model data is read or loaded? To clarify what I mean in SQL, I want the Django model to produce something like ...

An enterprise scheduler for python (like quartz)

I am looking for an enterprise tasks scheduler for python, like quartz is for Java. Requirements: Persistent: if the process restarts or the machine restarts, then all the jobs must stay there and ...

How to remove unique, then duplicate dictionaries in a list?

Given the following list that contains some duplicate and some unique dictionaries, what is the best method to remove unique dictionaries first, then reduce the duplicate dictionaries to single ...

What is suggested seed value to use with random.seed()?

Simple enough question: I m using python random module to generate random integers. I want to know what is the suggested value to use with the random.seed() function? Currently I am letting this ...

How can I make the PyDev editor selectively ignore errors?

I m using PyDev under Eclipse to write some Jython code. I ve got numerous instances where I need to do something like this: import com.work.project.component.client.Interface.ISubInterface as ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

Pragmatically adding give-aways/freebies to an online store

Our business currently has an online store and recently we ve been offering free specials to our customers. Right now, we simply display the special and give the buyer a notice stating we will add the ...

Converting Dictionary to List? [duplicate]

I m trying to convert a Python dictionary into a Python list, in order to perform some calculations. #My dictionary dict = {} dict[ Capital ]="London" dict[ Food ]="Fish&Chips" dict[ 2012 ]="...

热门标签