【发布时间】:2013-03-18 05:19:48
【问题描述】:
美好的一天,
如何打印带有WWW::Mechanize::Firefox 的HTML 标记的文本?
我试过了:
print $_->text, '/n' for $mech->selector('td.dataCell');
print $_->text(), '/n' for $mech->selector('td.dataCell');
print $_->{text}, '/n' for $mech->selector('td.dataCell');
print $_->content, '/n' for $mech->selector('td.dataCell');
请记住,我不想要 {innerhtml},但这确实有效。
print $_->{text}, '/n' for $mech->selector('td.dataCell');
上面的行确实有效,但输出只是多个/n
【问题讨论】:
标签: html perl web-scraping www-mechanize www-mechanize-firefox