Coldfusion 冷熔合刮网

Coldfusion 冷熔合刮网,coldfusion,screen-scraping,cfhttp,Coldfusion,Screen Scraping,Cfhttp,我正试图在Coldfusion中使用下面的代码筛选另一个应用程序 <cfhttp url="https://intra.att.com/itscmetrics/EM2/LTMR.cfm" method="get" username="uvwxyz" password="abcdef"> <cfhttpparam type="url" name="LTMX" value="Andre Fuetsch / Shelly K Lazzaro"> </cfhtt

我正试图在Coldfusion中使用下面的代码筛选另一个应用程序

 <cfhttp url="https://intra.att.com/itscmetrics/EM2/LTMR.cfm" method="get" username="uvwxyz" password="abcdef">  

 <cfhttpparam type="url" name="LTMX" value="Andre Fuetsch / Shelly K Lazzaro">

</cfhttp> 

  <cfset myDocument = cfhttp.fileContent>

<cfoutput>
  #myDocument#
</cfoutput>

#我的文件#
现在,当我运行我的cfm页面时,我可以使用上面的代码访问Destination页面。 目标页面如下所示

这篇文章的部分源代码如下

<table border="1" width=99% style="border-collapse:collapse;">
    <thead>
    <td colspan="12" class="drpmainheader1_2">LTM Detail Report for Andre Fuetsch / Shelly K Lazzaro</td>
    <tr align="center">
      <th class="ptitles">Liaison Name</th>
      <th class="ptitles">Application Acronym</th>
      <th class="ptitles">MOTS ID</th>
      <th class="ptitles">Priority</th> 
      <th class="ptitles">MC</th>
      <th class="ptitles">DR Exercise</th>
      <th class="ptitles">ARM/SRM Maintenance</th>
      <th class="ptitles">ARM/SRM Creation</th>             
      <th class="ptitles">Backup & Recovery Certification</th>
      <th class="ptitles">Interface Certification</th>
      <th class="ptitles">AIA Compliance</th>   
    </tr>
    </thead>

    <tbody>
    <tr>
    <td class="drpdetailtablerowdetailleft">Lynette M Acosta</td>
    <td class="drpdetailtablerowdetailleft">AABA</td>
    <td class="drpdetailtablerowdetail"><a href="http://ebiz.sbc.com/mots/detail.cfm?appl_id=9710" target="_blank" style="color:blue;">9710</a></td>
    <td class="drpdetailtablerowdetail">5</td>
    <td class="drpdetailtablerowdetail">NMC</td>
<td class="drpdetailtablerowdetail">Compliant</td> <td class="drpdetailtablerowdetail">Compliant</td> <td class="drpdetailtablerowdetail">Compliant</td> <td class="drpdetailtablerowdetail">Compliant</td> <td class="drpdetailtablerowdetail">Compliant</td> <td class="drpdetailtablerowdetail">Compliant</td>
    </tr>
    </tbody>

    <tbody>
    <tr>
    <td class="drpdetailtablerowdetailleft">Lynette M Acosta</td>
    <td class="drpdetailtablerowdetailleft">ABS RECON+</td>
    <td class="drpdetailtablerowdetail"><a href="http://ebiz.sbc.com/mots/detail.cfm?appl_id=13999" target="_blank" style="color:blue;">13999</a></td>
    <td class="drpdetailtablerowdetail">3</td>
    <td class="drpdetailtablerowdetail">NMC</td>
<td class="drpdetailtablerowdetail">Compliant</td> <td class="drpdetailtablerowdetail">Compliant</td> <td class="drpdetailtablerowdetail">Compliant</td> <td class="drpdetailtablerowdetail">Compliant</td> <td class="drpdetailtablerowdetail">Compliant</td> <td class="drpdetailtablerowdetail">Compliant</td>
    </tr>
    </tbody>

Andre Fuetsch/Shelly K Lazzaro LTM详细报告
联络人姓名
应用程序首字母缩略词
MOTS ID
优先事项
国会议员
DR运动
ARM/SRM维护
ARM/SRM创建
备份和恢复认证
接口认证
友邦保险合规部
勒奈特·M·阿科斯塔
阿巴
5.
NMC
顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应
勒奈特·M·阿科斯塔
ABS侦察机+
3.
NMC
顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应顺应

我对coldfusion中的正则表达式不太在行,有没有人可以指导我或者给我一些关于如何使用coldfusion从html表中提取数据的起点?我没有访问数据库的权限。希望这是清楚的

使用正则表达式解析HTML?如果使用JSoupHTML解析器w/ColdFusion,您将有更多选项。Jsoup使用类似于jQuery的DOM选择器,可以将HTML表数据快速转换为数组

以下是一些相关文章和示例代码:


使用正则表达式解析HTML?如果使用JSoupHTML解析器w/ColdFusion,您将有更多选项。Jsoup使用类似于jQuery的DOM选择器,可以将HTML表数据快速转换为数组

以下是一些相关文章和示例代码:


谢谢……我以前没有使用过coldfusion中的任何java对象。如何包含来自coldfusion的jsoup库。我下载了JSOUPJAR文件,将其保存在我的目录中,我这样做了,但我得到了一个错误。对象实例化异常。找不到类:org.jsoup.jsoup有什么想法吗?您可能想在Serverfault.com上为该问题提出一个单独的问题,该问题不是Serverfault问题!理想情况下,这应该是一个关于StackOverflow的新问题,但答案是确保您已将JAR放入正确的目录(与
cfusion.JAR
相同的
lib
dir)并重新启动。在CF10中有一个管理员设置,允许在其他目录中使用jar,您也可以使用JavaLoader来定位特定的jar。谢谢……我以前没有使用coldfusion中的任何java对象。如何包含来自coldfusion的jsoup库。我下载了JSOUPJAR文件,将其保存在我的目录中,我这样做了,但我得到了一个错误。对象实例化异常。找不到类:org.jsoup.jsoup有什么想法吗?您可能想在Serverfault.com上为该问题提出一个单独的问题,该问题不是Serverfault问题!理想情况下,这应该是一个关于StackOverflow的新问题,但答案是确保您已将JAR放入正确的目录(与
cfusion.JAR
相同的
lib
dir)并重新启动。在CF10中有一个管理员设置,允许在其他目录中使用jar,您也可以使用JavaLoader来定位特定的jar。我希望这不是真正的用户名和密码。我希望这不是真正的用户名和密码。