adblockparser
adblockparser copied to clipboard
Would rules without options be processed and matched if I explicitly list options in AdblockRules constructor?
I've read adblockparser pypi, and I got a little confused about Parsing rules with options. I want to know that whether rules without options(basic rules) would still be processed even if I specify a list of options.
Based on the implementation, I would expect rules without options to be always taken into account.
It would be great if you could test it and confirm, though.
We could definitely improve the description in PyPI and the README to be explicit about this.
Based on the implementation, I would expect rules without options to be always taken into account.
It would be great if you could test it and confirm, though.
We could definitely improve the description in PyPI and the README to be explicit about this.
Thanks for your quick response. Plus, I've got another question, hope it won't bother you: Is there a possible way to disable exception rules? I am doing a research requiring me to find all ads on websites, and I'm wondering if it is possible to do so after discard all exception rules.
According to https://adblockplus.org/en/filter-cheatsheet#comments you could comment out rules with an exclamation mark. The code seems to handle that as expected, but as with my previous comment, I’m just reading the code, I have not actually tested any of this.
According to https://adblockplus.org/en/filter-cheatsheet#comments you could comment out rules with an exclamation mark. The code seems to handle that as expected, but as with my previous comment, I’m just reading the code, I have not actually tested any of this.
Anyway, thanks a lot!