sitediff
sitediff copied to clipboard
Where should the output be?
---
before:
url: https://www.a.com
regions:
- name: title
selector: h1.title
output:
- title
after:
url: https://beta.b.com
regions:
- name: title
selector: h1.title
output:
- title
settings: {}
The diff is the fully html page and not only the h1.title as I trying to make it.
Where should output be set?
The output
key should be at the root level. Just remove the indent from what you have there. Let me know how it works out for you... this is a new feature and it will be great to get some feedback. Thanks!
Hi @jontelm the output should be a section in top level, after "settings"
Like this?
---
before:
url: https://www.a.com
regions:
- name: title
selector: h1.title
after:
url: https://beta.a.com
regions:
- name: title
selector: h1.title
settings: {}
output:
- title
result:
Invalid configuration: Unknown configuration key (.../sitediff.yaml): 'output'
---
before:
url: https://www.a.com
regions:
- name: title
selector: h1.title
after:
url: https://beta.a.com
regions:
- name: title
selector: h1.title
output:
- title
settings: {}
Same problem
Btw using version sitediff-1.0.0
For the moment you'll need to use master
branch. We'll have a 1.1.0 release out soon with this and a few other features.
Ok, now it works but this don't seems to be working? selector: 'h1.title' don't work but 'h1'
Possible to access meta and title tags?
<head>
<title>HTML Elements Reference</title>
<meta name="description" content="Free Web tutorials">
</head>
Once you use a named region, you'll only get the named regions for the diff. In order to get the h1.title and head elements, you'll need to use two named regions.
It is possible to look at the meta and title tags.