A Python tool to search on every machine - fast!
Just install Python 3.x and the dependencies in requirements.txt
by using the Pip package manager.
Using KRex is pretty straightforward. Just create your own config file to search for applications and to take browser screenshots.
Example:
{
"os": "mac",
"apps": [
{
"name": "Slack",
"fileName": "Slack.app",
"locations": [
"/Applications"
]
}
],
"browsers": [
{
"name": "safari",
"urls": [
{
"name": "Twitter",
"link": "https://www.twitter.com",
"delay_in_ms": 5000
}
]
}
]
}
With the above configuration, KRex does two things. Primarily, it search for a Slack application in the /Applications
dir. Next, it takes
a screenshot of Twitter with the browser safari. Easy as that.
KRex is flexible though. For example, you can add a wildcard to a path location. The pattern is provided to the Python glob library under the hood:
"apps": [
{
"name": "Slack",
"fileName": "Slack.app",
"locations": [
"~/**"
]
}
]
The following os
values are supported:
- mac
- windows
- linux
While running, KRex checks which operating system is currently used by the host. It skips config files that are not related to the current os automatically.
For a list of supported webbrowsers, visit: https://docs.python.org/3/library/webbrowser.html
After installing the dependencies by using Pip, you can run KRex like:
python ./krex.py
You can pass your config manually as well. You can also pass multiple configs by separating them with a comma:
python ./krex.py -config loc/example_a.json,loc/example_b.json