Comments (7)
Thanks for that bug report. I'll take a look.
from website-watcher.
I think I fixed it, please check.
Thanks for pointing me in the right direction with your hint. Bash is weird...
from website-watcher.
It seems to be a problem with jq's handling of single quotes.
from website-watcher.
Found the reason, it's in https://github.com/muety/website-watcher/blob/master/batch.sh#L27. The for loop is working with spaces, and if there is a space in the JSON itself, it won't work.
from website-watcher.
Great, thanks for the fix. There is another problem, though. You put double quotes around the variables in line https://github.com/muety/website-watcher/blob/master/batch.sh#L57. Problem with $ignore
is, that Python's argparse expects multiple arguments in the form -i arg1 arg2
or -i 'arg1' 'arg2'
. Currently it's -i 'arg1 arg2'
which results in one single XPath expression instead of a list. It works fine, when you remove the double quotes for $ignore
in line 57.
from website-watcher.
I see the problem. Probably those quotes aren't even needed anyway. We can probably remove them again.
from website-watcher.
I guess you can keep the double quotes in line 57, except for $ignore
, just checked it, seems to work.
from website-watcher.
Related Issues (17)
- SSL Doesn't support HOT 1
- Stdout adapter
- Subprocess adapter
- Add typings
- Include cookies when following redirects HOT 1
- Add example how to watch ebay-kleinanzeigen.de HOT 1
- Add possibility to monitor a list of URLs instead of single URL HOT 4
- Allow to set custom user agent
- Use difflib instead of length to detect changes HOT 6
- Add possibility to exclude HTML tags from beeing monitored HOT 4
- Predicting Tolerance HOT 1
- `ntfy.sh` adapter
- XPath queries to only include certain parts of a document HOT 9
- Use argparse HOT 3
- WebSub adapter HOT 1
- Python3.8 breaking HOT 2
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 website-watcher.