Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to address non-attribute content in quickscrape #57

Open
petermr opened this issue Sep 19, 2015 · 1 comment
Open

How to address non-attribute content in quickscrape #57

petermr opened this issue Sep 19, 2015 · 1 comment

Comments

@petermr
Copy link
Member

petermr commented Sep 19, 2015

If the landing page contains:

<title>Foo bar</title>

how do I extract the element value using:

"title": {
"selector": "//title",
},

(i.e. I want an analogue to attribute)

@blahah
Copy link
Member

blahah commented Sep 19, 2015

Attribute takes two special values, text (the default) and html. See the scraperJSON README https://github.com/ContentMine/scraperJSON/blob/master/README.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants