0

xpath help

Im trying to scrape http://www.gotfrag.com/
to get the table contents under 'latest esports news'

The query im using from this is

select * from html where url='http://www.gotfrag.com/' and xpath='//html/body/center/table/tbody/tr/td[2]/table/tbody/tr/td[2]/table/tbody/tr[3]/td/table/tbody/tr/td/table/tbody/tr/td[2]/div/div/div[3]/div[2]'

All that is being returned is

<?xml version="1.0" encoding="UTF-8"?>
<query xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" yahoo:count="0" yahoo:created="2009-10-15T12:40:29Z" yahoo:lang="en-US" yahoo:updated="2009-10-15T12:40:29Z" yahoo:uri="http://query.yahooapis.com/v1/yql?q=select+*+from+html+where+url%3D%27http%3A%2F%2Fwww.gotfrag.com%2F%27+and+xpath%3D%27%2F%2Fhtml%2Fbody%2Fcenter%2Ftable%2Ftbody%2Ftr%2Ftd%5B2%5D%2Ftable%2Ftbody%2Ftr%2Ftd%5B2%5D%2Ftable%2Ftbody%2Ftr%5B3%5D%2Ftd%2Ftable%2Ftbody%2Ftr%2Ftd%2Ftable%2Ftbody%2Ftr%2Ftd%5B2%5D%2Fdiv%2Fdiv%2Fdiv%5B3%5D%2Fdiv%5B2%5D%27">
<diagnostics>
<publiclyCallable>true</publiclyCallable>
<url execution-time="7003" proxy="DEFAULT"><![CDATA[http://www.gotfrag.com/]]></url>
<user-time>7011</user-time>
<service-time>7003</service-time>
<build-version>3431</build-version>
</diagnostics>
<results/>
</query>



I am getting this problem with alot of sites smile.gif
Where am I going wrong ?
Thanks

by
0 Replies

Recent Posts

in YQL