Skip to content

I thought I understood entire_subtree, then #161

Answered by MarkJaroski
MarkJaroski asked this question in Q&A
Discussion options

You must be logged in to vote

The entire_subtree belongs to location and must be under it. The config above should be:

scrapers:
  - name: Salopord
    url: http://salopard.ch/
    item: a.eventItem
    fields:
      - name: city
        value: Lausanne
      - name: title
        location: 
          selector: .eventItem__title p
          entire_subtree: true
        node_index: 0 # attempt to get entire_subtree to work the way I expect it to
        can_be_empty: true

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jakopako
Comment options

Answer selected by MarkJaroski
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants