Comments (4)
Good point, shouldn't forget about that.
An alternative to having a separate file would be to simply allow multiple --ignore
parameters. I think I like that option better.
Hope I can work on this soon. If you have some time, of course, feel free to contribute!
from website-watcher.
Or even when filtering <div>
I might want to ignore another nested <div>
with a different class
or id
.
from website-watcher.
First solution that comes to my mind is a separate config file (something like blacklist.txt
or so) consisting of a set of XPath queries addressing elements to exclude.
Something like: watcher.py -u https://github.com --ignore-elements blacklist.txt
with blacklist.txt
:
//script
//hr
/body/div[@class="some-list"]/div[@class="useless-element"]
What do you think? Do you have any preference about how to realize this feature?
from website-watcher.
I think, that's a good idea. You could also include it in the example/many.json file. One single XPath to use for diff and then a list of XPath to ignore.
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
- Predicting Tolerance HOT 1
- Bug in batch.sh HOT 7
- `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.