Comments (3)
Can confirm that the exclude
setting does not work properly.
Excluding URLs via RegEx should be straightforward but RegEx's tested valid with rubular.com don't seem to match with sitediff when crawling.
e.g. a URL with a path of "/de-en/products/" is still crawled even with an exclude value of \/de-en\/.*?$
from sitediff.
When you first run init
, you can include the exclude
command line parameter. Then, when you crawl, it will exclude the paths represented in the RegEx.
@mmunz You'll want to use a regex of .*\.pdf
@friggingee You'll want to use a regex of ^\/de\-en\/.*?$
from sitediff.
@kirk-brown-ew I tried that. Using your suggested regex as a yaml file setting:
settings:
exclude: "^\/de\-en\/.*?$"
yields the same result, namely that sites starting with "/de-en/..." are still being visited/cached/processed.
The actual solution lies in the syntax of the exclude
setting, namely that it needs to be written like it's being generated by sitediff init
instead of what the documentation suggests.
Using an exclude
value of !ruby/regexp /^\/de\-en\/.*?$/
yields the desired result of all links starting with "de-en" being excluded.
On this note, the regex I used, \/de-en\/.*?$
works just fine, as expected, as well, if used with the prefixed syntax.
from sitediff.
Related Issues (20)
- Where should the output be? HOT 8
- Seems to use 'after' site for both before and after HOT 2
- Under AWS Linux 2 running "sitediff store" command throws an exception HOT 5
- feature backlog suggestion: API diffs HOT 1
- Merging sanitisation rules from includes HOT 2
- Feature request - crawl sitemap.xml HOT 4
- sitediff version throws error HOT 1
- Can sitediff load pages from disk? HOT 2
- Improve docume ntation for "Export" option HOT 2
- Invalid byte sequence in US-ASCII (ArgumentError) when running `sitediff diff` HOT 1
- Sitediff init not creating Paths.txt HOT 5
- sitediff fails with "Not a directory @ apply2files" if crawl only produces one page HOT 6
- Diff can fail with error HOT 1
- sitediff store ends up in ArgumentError HOT 2
- Paths with trailing slashes always have the trailing slash removed HOT 1
- Allow separate curl_opts for before and after
- Crawler throws error when URL has leading/trailing whitespace HOT 1
- Ignore "itok" for image style URIs in Drupal preset HOT 2
- URLs with the www subdomain are not crawled
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sitediff.