The following finds me the set of itemids after submitting a search to Ebay.
<cfset sLenPos=REFind("ViewItem&item=([0-9]+)&category",
cfhttp.FileContent, index, "True")>
>From this I create a unique list of items. I then attempt to find the name
of the item:
<CFLOOP list="#items#" index="listidx">
<cfset sLenPos= REFind("#listidx#[^>]+>([^(</a>)]*)</a>",
cfhttp.FileContent, 1, "True")>
<cfif sLenPos.pos[1] neq 0 or sLenPos.len[1] neq 0>
#listidx#: #mid(cfhttp.FileContent, sLenPos.pos[2],
sLenPos.len[2])#<br>
</cfif>
</cfloop>
This appears to work for only about 5 of the 50 entries. Anybody know what I
am doing wrong?
Adam
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Get the mailserver that powers this list at
http://www.coolfusion.com