WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
142 changes: 142 additions & 0 deletions "b/mock_data\\sessions.json"
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
[
{
"id": "e4d32aee-1f40-4c48-a2fd-fe8221358ab2",
"total_interactions": 30,
"successful_interactions": 20,
"total_followed": 10,
"total_likes": 10,
"total_comments": 10,
"total_pm": 10,
"total_watched": 10,
"total_unfollowed": 10,
"total_scraped": {},
"start_time": "2023-12-29 17:56:22.612008",
"finish_time": "2023-12-29 19:57:34.465153",
"args": {},
"profile": {
"posts": 4,
"followers": 200,
"following": 1011
}
},
{
"id": "38341cbf-589d-49ab-98c6-b5b54558b486",
"total_interactions": 30,
"successful_interactions": 20,
"total_followed": 10,
"total_likes": 10,
"total_comments": 10,
"total_pm": 10,
"total_watched": 10,
"total_unfollowed": 10,
"total_scraped": {},
"start_time": "2024-01-01 11:49:46.405981",
"finish_time": "2024-01-01 12:19:47.342904",
"args": {},
"profile": {
"posts": 4,
"followers": 222,
"following": 1008
}
},
{
"id": "e4d32aee-1f40-4c48-a2fd-fe8221358ab2",
"total_interactions": 20,
"successful_interactions": 5,
"total_followed": 1,
"total_likes": 1,
"total_comments": 1,
"total_pm": 1,
"total_watched": 1,
"total_unfollowed": 1,
"total_scraped": {},
"start_time": "2024-01-01 12:03:57.633619",
"finish_time": "None",
"args": {},
"profile": {
"posts": 4,
"followers": 225,
"following": 1007
}
},
{
"id": "ca81fc51-9e5c-4f83-a2bc-7ccbc0c6fef1",
"total_interactions": 300,
"successful_interactions": 10,
"total_followed": 5,
"total_likes": 5,
"total_comments": 5,
"total_pm": 5,
"total_watched": 5,
"total_unfollowed": 5,
"total_scraped": {},
"start_time": "2024-01-01 19:45:38.757304",
"finish_time": "2024-01-01 20:55:01.146696",
"args": {},
"profile": {
"posts": 4,
"followers": 230,
"following": 1009
}
},
{
"id": "631e137f-3f3e-4377-a455-118225a03690",
"total_interactions": 10,
"successful_interactions": 10,
"total_followed": 5,
"total_likes": 5,
"total_comments": 5,
"total_pm": 5,
"total_watched": 5,
"total_unfollowed": 5,
"total_scraped": {},
"start_time": "2024-01-02 19:36:38.578977",
"finish_time": "2024-01-02 19:57:41.298307",
"args": {},
"profile": {
"posts": 4,
"followers": 242,
"following": 1009
}
},
{
"id": "f4a76d95-7edb-4930-a147-897c0755826b",
"total_interactions": 30,
"successful_interactions": 15,
"total_followed": 5,
"total_likes": 5,
"total_comments": 5,
"total_pm": 5,
"total_watched": 5,
"total_unfollowed": 5,
"total_scraped": {},
"start_time": "2024-01-02 21:37:08.331302",
"finish_time": "2024-01-02 21:48:00.768777",
"args": {},
"profile": {
"posts": 4,
"followers": 247,
"following": 1011
}
},
{
"id": "f76d24ed-1fad-4d03-8a5a-af367ce59d2f",
"total_interactions": 30,
"successful_interactions": 20,
"total_followed": 10,
"total_likes": 10,
"total_comments": 10,
"total_pm": 10,
"total_watched": 10,
"total_unfollowed": 10,
"total_scraped": {},
"start_time": "2024-01-02 21:56:57.612008",
"finish_time": "2024-01-02 22:57:44.465153",
"args": {},
"profile": {
"posts": 4,
"followers": 250,
"following": 1011
}
}
]
26 changes: 26 additions & 0 deletions GramAddict/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
from GramAddict import __version__
from GramAddict.core.bot_flow import start_bot
from GramAddict.core.download_from_github import download_from_github
from GramAddict.core.setup_wizard import run_setup_wizard
from GramAddict.core.health_check import run_health_check


def cmd_init(args):
Expand Down Expand Up @@ -78,7 +80,31 @@ def make_archive(name):
print(Fore.BLUE + Style.BRIGHT + f"{os.getcwd()}\\screen_{archive_name}.zip")


def cmd_setup(args):
"""Run the plug-and-play setup wizard."""
import sys
sys.exit(run_setup_wizard())


def cmd_health_check(args):
"""Run system health check."""
import sys
sys.exit(run_health_check())


_commands = [
dict(
action=cmd_setup,
command="setup",
help="interactive setup wizard for plug-and-play configuration (recommended for first-time users)",
flags=[],
),
dict(
action=cmd_health_check,
command="health-check",
help="verify system requirements and configuration",
flags=[],
),
dict(
action=cmd_init,
command="init",
Expand Down
Loading