Giter Site home page Giter Site logo

Comments (4)

muety avatar muety commented on September 28, 2024 1

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.

coveritytest avatar coveritytest commented on September 28, 2024

Or even when filtering <div> I might want to ignore another nested <div> with a different class or id.

from website-watcher.

muety avatar muety commented on September 28, 2024

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.

coveritytest avatar coveritytest commented on September 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.