适用于hoopchina(虎扑)和popgo(漫游)的自动翻页设置,当然,前提是你用firefox并安装了autopager插件
for hoopchina.com:
<autopager>
<site><urlPattern>http://bbs.hoopchina.com/*</urlPattern>
<guid>D661475F-94D9-7FE3-417A-D884-BFBD-5D3D</guid>
<margin>1</margin>
<owner>dyerac</owner>
<urlIsRegex>true</urlIsRegex>
<quickLoad>true</quickLoad>
<contentXPath>//div[@class='page_box']</contentXPath>
<contentXPath>//table[@id='pl']</contentXPath>
<contentXPath>//body</contentXPath>
<testLink>http://bbs.hoopchina.com/670864.html?vthread</testLink>
<linkXPath>//a[@class='next' and @title='下一页'] | //table[3]/tbody/tr/td[@align='left']/span[1]/following-sibling::a[1]</linkXPath>
<desc>http://bbs.hoopchina.com/670864.html?vthread</desc>
</site>
</autopager>
for popgo.net:
<autopager>
<site><urlPattern>popgo.net/*</urlPattern>
<guid>EEC01EEE-5707-D109-F0A8-17EE-AC12-4D23</guid>
<margin>1</margin>
<owner>dyerac</owner>
<urlIsRegex>true</urlIsRegex>
<quickLoad>true</quickLoad>
<contentXPath>//center</contentXPath>
<testLink>http://popgo.net/bbs/forumdisplay.php?s=&forumid=11&daysprune=30&sortorder=&sortfield=lastpost&perpage=40&pagenumber=3</testLink>
<linkXPath>//a[@title='下一页']</linkXPath>
<desc>http://popgo.net/bbs/forumdisplay.php?s=&forumid=11&daysprune=30&sortorder=&sortfield=lastpost&perpage=40&pagenumber=3</desc>
</site>
</autopager>
———————————–
PHPWind 老版本的html代码真可怕…都不用div的….
useful links:
http://www.teesoft.info/component/option,com_wrapper/Itemid,86/