Closed (fixed)
Project:
Feeds XPath Parser
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Jan 2011 at 15:26 UTC
Updated:
19 Dec 2012 at 22:37 UTC
Jump to comment: Most recent file
Comments
Comment #1
twistor commentedI'd do something like this:
context: //div[starts-with(@class, "views-row")]
title: div/div/h1/a
body: .//div[@class='field field-body']/p (notice the dot in front)
Hope this helps!
Comment #2
lagerassassin commentedtotal longshot and to be honest I don't expect anyone to help as I know I should keep going til I can do it myself but I've been on this for 3 days now and at the end of my tether lol
Im trying to pull data from http://www.bet365.com/extra/Streaming/
I need the match listings for a betting site im starting
I don't know whether I need the parser to be xml or html, guessing the latter but not 100% sure
can anyone help me with the context, title and body strings at all please? really i just need a node per date and all matches of that day listed in the body
you would save me sleepless nights if someone would be so kind, many thanks!
Comment #3
Marko B commentedHey Twistor, thanx on helping, it got a bit better, now there is 10 of xpathparser:0: and xpathparser:1 valuse with corresponding html/text but still i get only one node created?
I tried several variants, also tried to be very specific like
context:div[@id='main']//div[starts-with(@class, "views-row")]
title:.//div/div/h1/a
body:.//div[@class='field field-body']/p
tried it without dots also, tried it all with FIREPATH and paths look fine. Also i tried to get data with
text() or node() function like //div/div/h1/a/text() but seems like parser ignores them and still loads it like it is //div/div/h1/a
I'll attach errors i get on top and also debug info. So you can see what i am talking about, seems fine but still only one node is created?!
Comment #5
Marko B commentedNot fixed, i'll try all of this on blank drupal and report again the status as i couldnt get this module to do what its suppose to do and not sure is it my fault or module isnt working good :-(
Comment #6
jacobpov commentedSame problem here , I have a page with around 10 pictures what it does it picks the first titile and uploads those 10 pictures into 1 node ... Hmm how can I make 1 picture + 1 title = 1 node?
FOR IMAGE:
.//*[@id='content']/div/p/img/@src
FOR TITLE:
.//*[@id='content']/div/h2/a/text()
Comment #7
jacobpov commentedComment #8
twistor commented@jacobpov,
You'll have better luck opening a new issue than commenting on an old closed one. Also, your XML structure will be needed.
@deepM, feel free to re-open the issue if you're still having problems.
Comment #9
blogook commentedI have the same question.