Open YousufSSyed opened 1 year ago
what or where is pywb.recorder.test.test_recorder.?
The file the document is referring to is here: https://github.com/webrecorder/pywb/blob/main/pywb/recorder/test/test_recorder.py. One of the tests it's referring to is: https://github.com/webrecorder/pywb/blob/main/pywb/recorder/test/test_recorder.py#L202-L225.
Right now this is functionality that's available in the code base but not exposed via pywb's record mode. Perhaps @ikreymer could shed some additional light here, but I don't believe that it's currently possible to e.g. filter out videos by their extension in pywb's record mode.
OK, but why is it written as pywb.recorder.test.test_recorder
? Why doesn't it say something like "pywb/recorder/test/test_recorder.py
in the repo [or code]"?
OK, but why is it written as
pywb.recorder.test.test_recorder
? Why doesn't it say something like "pywb/recorder/test/test_recorder.py
in the repo [or code]"?
Good question! That is the Python packaging/import syntax for that particular test module. Perhaps a link would be more widely accessible.
You mean if I were to import
the package in a Python script?
And are you able to edit Pywb's documentation? Can you make a link to the script? And in other places in the documentation as well? That would be appreciated!
I don't want Pywb to automatically record video files. I found this page on filter: https://pywb.readthedocs.io/en/latest/manual/recorder.html?highlight=filter#custom-filtering, but it doesn't list specifics and it says "For a more detailed examples, please consult the tests in pywb.recorder.test.test_recorder." what or where is
pywb.recorder.test.test_recorder
?If I did filter out videos like MP4s, could I still record MP4s if I clicked on the video for it to play?