I am having problem parsing a google document form response.
I have a form ready and I have tried copying the xpath of the data which i need from thingspeak ThingHTTP via Google chrome and FireFox (Firebug).
The same problem arises for data from my phpMyAdmin server. I have made a database for my project and I am trying to get that Data from thingspeak ThingHTTP via Google chrome and FireFox (Firebug).\
Please Help me solve this problem.
I tried doing that but there no change in the output.
It says "Error parsing document, try a different parse string"
As per the error I have tried parsing all other data on the webpage but none of them worked. As per my above post I have tried gettign the Xpath via Google Chrome and Mozilla FireFox (Firebug) but did not work.
Please help me solving this.
I've had the same trouble in the past- there seems to be differences in the way different versions of the xpath parser work. Its also possible that the website you are scraping renders differently when accessed by thingHTTP than when your browser loads it.
I can only suggest that you start with shorter expressions and gradually refine your xpath. I agree with Rob that you should leave out the XPath:
For example this is the xpath firebug gives me for the timestamp of the latest tweet on someone's twitter feed
Whereas this is the string that actually works in thingHTP
In your case I would start with //[@id="table_results"] , get that to work and then drill down into the structure gradually.
I am new to the Xpath thing so would like to ask one thing that for example can I get the data by using xpath from phpMyAdmin database ?
I am getting that error then too. I am just entering the URL and the Xpath in the ThingHTTP. Is it anything i need to enter so as to get this thing work.
I have a project for which i need to get data from phpMyAdmin Database .
And for the google document form. I am able to get the Data i.e the Question on ThingHTTP but i am unable to get the answer. For e.g Medicine name is my question which i am getting it on ThingHTTP but I am unable to get Crocin on ThingHTTP.
Error Still persists for both Google Doc form and phpMyAdmin!
I tried your google forms URL and found
//div[@id="ResponsesView"]/div/div/div/div succeeds but gives an empty element but
//div[@id="ResponsesView"]/div/div/div/div/div gives the error message.
So perhaps you can work from there..
I was unable to use [@class="...."] as a selector anywhere on that form.
Most Users Ever Online: 114
Currently Online: jacktheripper125
Currently Browsing this Page:
Guest Posters: 1
Administrators: Hans, lee