mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-04-23 22:41:39 +00:00
Update help message
This commit is contained in:
17
README.md
17
README.md
@@ -106,12 +106,15 @@ After extracting, you will get these:
|
|||||||
Invoke the wtsexporter with --help option will show you all options available.
|
Invoke the wtsexporter with --help option will show you all options available.
|
||||||
```sh
|
```sh
|
||||||
> wtsexporter --help
|
> wtsexporter --help
|
||||||
usage: wtsexporter [options]
|
usage: wtsexporter [-h] [-a] [-i] [-e EXPORTED] [-w WA] [-m MEDIA] [-b BACKUP] [-o OUTPUT] [-j [JSON]] [-d DB] [-k KEY] [-t TEMPLATE] [-s] [-c] [--offline OFFLINE] [--size [SIZE]]
|
||||||
|
[--no-html] [--check-update] [--assume-first-as-me]
|
||||||
|
|
||||||
options:
|
options:
|
||||||
-h, --help show this help message and exit
|
-h, --help show this help message and exit
|
||||||
-a, --android Define the target as Android
|
-a, --android Define the target as Android
|
||||||
-i, --iphone, --ios Define the target as iPhone
|
-i, --iphone, --ios Define the target as iPhone/iPad
|
||||||
|
-e EXPORTED, --exported EXPORTED
|
||||||
|
Define the target as exported chat file and specify the path to the file
|
||||||
-w WA, --wa WA Path to contact database (default: wa.db/ContactsV2.sqlite)
|
-w WA, --wa WA Path to contact database (default: wa.db/ContactsV2.sqlite)
|
||||||
-m MEDIA, --media MEDIA
|
-m MEDIA, --media MEDIA
|
||||||
Path to WhatsApp media folder (default: WhatsApp)
|
Path to WhatsApp media folder (default: WhatsApp)
|
||||||
@@ -125,14 +128,16 @@ options:
|
|||||||
-k KEY, --key KEY Path to key file
|
-k KEY, --key KEY Path to key file
|
||||||
-t TEMPLATE, --template TEMPLATE
|
-t TEMPLATE, --template TEMPLATE
|
||||||
Path to custom HTML template
|
Path to custom HTML template
|
||||||
-e, --embedded Embed media into HTML file (not yet implemented)
|
|
||||||
-s, --showkey Show the HEX key used to decrypt the database
|
-s, --showkey Show the HEX key used to decrypt the database
|
||||||
-c, --move-media Move the media directory to output directory if the flag is set, otherwise copy it
|
-c, --move-media Move the media directory to output directory if the flag is set, otherwise copy it
|
||||||
--offline OFFLINE Relative path to offline static files
|
--offline OFFLINE Relative path to offline static files
|
||||||
--size SIZE, --output-size SIZE
|
--size [SIZE], --output-size [SIZE], --split [SIZE]
|
||||||
Maximum size of a single output file in bytes, 0 for auto (not yet implemented)
|
Maximum (rough) size of a single output file in bytes, 0 for auto
|
||||||
--no-html Do not output html files
|
--no-html Do not output html files
|
||||||
--check-update Check for updates
|
--check-update Check for updates (require Internet access)
|
||||||
|
--assume-first-as-me Assume the first message in a chat as sent by me (must be used together with -e)
|
||||||
|
|
||||||
|
WhatsApp Chat Exporter: 0.9.1 Licensed with MIT
|
||||||
```
|
```
|
||||||
|
|
||||||
# To do
|
# To do
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ from Whatsapp_Chat_Exporter import extract, extract_exported, extract_iphone
|
|||||||
from Whatsapp_Chat_Exporter import extract_iphone_media
|
from Whatsapp_Chat_Exporter import extract_iphone_media
|
||||||
from Whatsapp_Chat_Exporter.data_model import ChatStore
|
from Whatsapp_Chat_Exporter.data_model import ChatStore
|
||||||
from Whatsapp_Chat_Exporter.utility import Crypt, check_update
|
from Whatsapp_Chat_Exporter.utility import Crypt, check_update
|
||||||
from argparse import ArgumentParser
|
from argparse import ArgumentParser, SUPPRESS
|
||||||
import os
|
import os
|
||||||
import sqlite3
|
import sqlite3
|
||||||
import shutil
|
import shutil
|
||||||
@@ -38,6 +38,13 @@ def main():
|
|||||||
default=False,
|
default=False,
|
||||||
action='store_true',
|
action='store_true',
|
||||||
help="Define the target as iPhone/iPad")
|
help="Define the target as iPhone/iPad")
|
||||||
|
parser.add_argument(
|
||||||
|
"-e",
|
||||||
|
"--exported",
|
||||||
|
dest="exported",
|
||||||
|
default=None,
|
||||||
|
help="Define the target as exported chat file and specify the path to the file"
|
||||||
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"-w",
|
"-w",
|
||||||
"--wa",
|
"--wa",
|
||||||
@@ -98,7 +105,7 @@ def main():
|
|||||||
dest="embedded",
|
dest="embedded",
|
||||||
default=False,
|
default=False,
|
||||||
action='store_true',
|
action='store_true',
|
||||||
help="Embed media into HTML file (not yet implemented)"
|
help=SUPPRESS or "Embed media into HTML file (not yet implemented)"
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"-s",
|
"-s",
|
||||||
@@ -131,7 +138,7 @@ def main():
|
|||||||
type=int,
|
type=int,
|
||||||
const=0,
|
const=0,
|
||||||
default=None,
|
default=None,
|
||||||
help="Maximum (Rough) size of a single output file in bytes, 0 for auto"
|
help="Maximum (rough) size of a single output file in bytes, 0 for auto"
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--no-html",
|
"--no-html",
|
||||||
@@ -147,13 +154,6 @@ def main():
|
|||||||
action='store_true',
|
action='store_true',
|
||||||
help="Check for updates (require Internet access)"
|
help="Check for updates (require Internet access)"
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
|
||||||
"-e",
|
|
||||||
"--exported",
|
|
||||||
dest="exported",
|
|
||||||
default=None,
|
|
||||||
help="Path to exported chat file"
|
|
||||||
)
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--assume-first-as-me",
|
"--assume-first-as-me",
|
||||||
dest="assume_first_as_me",
|
dest="assume_first_as_me",
|
||||||
|
|||||||
Reference in New Issue
Block a user