【发布时间】:2016-11-30 10:15:19
【问题描述】:
Casperjs 快速入门谷歌搜索代码:
this.fill('form[action="/search"]', { q: 'google search' }, true);
如何在 casperjs 中定位此表单?
【问题讨论】:
标签: web-scraping phantomjs web-crawler casperjs
Casperjs 快速入门谷歌搜索代码:
this.fill('form[action="/search"]', { q: 'google search' }, true);
如何在 casperjs 中定位此表单?
【问题讨论】:
标签: web-scraping phantomjs web-crawler casperjs
你需要使用fillSelectors()函数:
this.fillSelectors('form#frm_one', {q: 'google search'}, true);
【讨论】: