feat: add manual instagram session login

This commit is contained in:
Your Name
2026-08-05 21:28:15 +05:00
parent fae611109e
commit 3b2e5a3205
5 changed files with 111 additions and 16 deletions
@@ -8,6 +8,7 @@ VALUES
('insta_password', '""'::jsonb, 'secret', 'Instagram password', 'Password for the Instagram account used by instagrapi.', 'Instagram Parser'),
('insta_proxy_url', '""'::jsonb, 'str', 'Instagram proxy URL', 'Optional stable proxy, for example http://user:pass@host:port.', 'Instagram Parser'),
('insta_session_path', '"insta_session.json"'::jsonb, 'str', 'Instagram session path', 'Path to the persisted instagrapi session settings file.', 'Instagram Parser'),
('insta_auth_status', '""'::jsonb, 'str', 'Instagram auth status', 'Last manual Instagram login result.', 'Instagram Parser'),
('insta_fetch_count', '5'::jsonb, 'int', 'Posts to inspect', 'How many latest posts to inspect per account visit.', 'Instagram Parser'),
('insta_delay_base_minutes', '35'::jsonb, 'int', 'Account visit delay, minutes', 'Base pause after checking one Instagram account.', 'Instagram Parser'),
('insta_delay_random_minutes', '5'::jsonb, 'int', 'Delay random spread, minutes', 'Random +/- spread added to the base account visit delay.', 'Instagram Parser'),
+12
View File
@@ -0,0 +1,12 @@
INSERT INTO app_settings(key, value_json, value_type, title, description, category)
VALUES
('insta_auth_status', '""'::jsonb, 'str', 'Instagram auth status', 'Last manual Instagram login result.', 'Instagram Parser')
ON CONFLICT (key) DO NOTHING;
UPDATE app_settings
SET description='Used only by the manual Instagram login button. The parser reads the saved session file and does not auto-login.'
WHERE key='insta_login';
UPDATE app_settings
SET description='Used only by the manual Instagram login button. The parser reads the saved session file and does not auto-login.'
WHERE key='insta_password';