-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from guibacellar/40-finder-engine-inside-text-…
…downloaded-files 40 finder engine inside text downloaded files
- Loading branch information
Showing
17 changed files
with
395 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
"""Base Class for All Finders.""" | ||
from __future__ import annotations | ||
|
||
import abc | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Message Finder System | ||
|
||
**Compatibility:** Message Listener Command | ||
|
||
Telegram Explorer allows to specify many message finders. Usually, the finder engine looks at messages, but, they also can look at downloaded text files (plain, csv, xml, json, etc.). | ||
|
||
**Configuration Spec:** | ||
|
||
In order to use the finder engine, you must set a configuration to enable-it and configure if you want to allow the engine to find on files. | ||
|
||
**Parameters:** | ||
|
||
* **enabled** > Required - Enable(true)/Disable(false) the finder engine. | ||
* **find_in_text_files_enabled** > Optional - Enable(true)/Disable(false) the behavior that run the finder engine inside the downloaded files. | ||
* Default: false | ||
* **find_in_text_files_max_size_bytes** > Optional - Set the max size in bytes of file that allow the engine to load the file in memory and perform the searches. | ||
* Default: 10000000 | ||
|
||
|
||
**Changes on Configuration File** | ||
```ini | ||
[FINDER] | ||
enabled=true | ||
find_in_text_files_enabled=true | ||
find_in_text_files_max_size_bytes=20000000 | ||
``` | ||
|
||
**Files Supported for the Engine:** | ||
|
||
* application/atom+xml | ||
* application/bittorrent | ||
* application/csv | ||
* application/html | ||
* application/json | ||
* application/ld+json | ||
* text/csv | ||
* text/html | ||
* text/plain | ||
* text/xml |
Oops, something went wrong.