English 中文(简体)
在使用Dott、AJAX等网站使用Zazz机械化?
原标题:Using Python mechanize on websites that use DHTML, AJAX, etc.?

因此,我要说,Im试图制造一些东西,回答对前导体中某些“hashtag 关键词”(例如“第一组世界材料”)的束缚。 我有这样的文字:

# apply settings, create a mechanize.Browser, etc.

login() # log into twitter

# at this point we ve logged into twitter, now, we will perform navigate to their search page and run a search query:
br.open( http://twitter.com/search?q=  + hashtag)
print(br.response().read()) # print the response

因此,我前面的内容是简明的版本,以便迅速进入给我麻烦的现场。

我设立了一个浏览器,记录为tw,但都没有问题。 但是,当时我对冲锋进行了搜索(使用新字),然后我印刷了答复。

在“Twitter”上,“Reply”链接只有在你控制某一具体联系并导致“#”时才会出现(由于它打开了你可以作答复的一件小小pop事),我如何点击“Reply”联系,因为它没有在答复中显示?

最佳回答

如果你的问题实际上刚刚进入Twitter,那么Dmedvinsky可能是正确的。

然而,如果你真的希望能够拆解网站(尽管允许其java书照正常运行),那么你很可能想做一点更强的事情。

虽然它有许多行李,但我强烈敦促你打碎Qt,PySide,熟悉QWebKit。 你们能够从沙捞越真正的网络浏览器,获得所有好处(和问题);人们会期望。 但是,迄今为止,它采用了最佳和最清洁的方法,我发现自己是做你再次要求做的事。

问题回答

暂无回答




相关问题
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 ]="...

热门标签