Replies: 1 comment
-
Has anyone figured out how to use this in library mode with different parser parameters for different targets? It seems completely impossible (due to parser options global for everything) https://github.com/projectdiscovery/katana/blob/main/pkg/engine/parser/parser.go#L36 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When we use katana as a library and initialize the parser, it turns out to be one for the entire project (since it stores the settings in a global variable). Moreover, there is no function to reset these settings.
Maybe we should abandon global variables and put them in a structure so that we can use different site parsing parameters for different targets within one program?
Beta Was this translation helpful? Give feedback.
All reactions