InstaPy / InstaPy/instapy-quickstart

Program Stops

Offen
#135 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
777
Forks
763
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Hi, I have an installation on my Mac. The program runs but whenever an error occurs in the Console the whole program stops and I have to manually start it again. Any insight into how I can edit my Quickstart so that the program will run after an error?

`from instapy import InstaPy
from instapy import smart_run
from instapy import set_workspace
import schedule
import time
import os

#your login credentials
insta_username='test'
insta_password='test'

#path to your workspace
set_workspace(path=None)

def job():
session = InstaPy(username=insta_username, password=insta_password)
with smart_run(session):
session.set_user_interact(amount=10, randomize=True, percentage=50, media='Photo')
session.set_do_like(enabled=True, percentage=50)
session.set_relationship_bounds(enabled=True, delimit_by_numbers=True, max_followers=1200, max_following=5000, min_followers=10, min_following=56, min_posts=10, max_posts=1500)
session.set_skip_users(skip_private=True, private_percentage=100, skip_no_profile_pic=True, no_profile_pic_percentage=100, skip_business=False, skip_non_business=False, business_percentage=100, skip_business_categories=[], dont_skip_business_categories=[])
session.set_quota_supervisor(enabled=True, peak_likes_hourly=25)
session.interact_user_followers(['test', 'test', 'test', 'test', 'test'], amount=4, randomize=True)
#session.set_action_delays(enabled=True, like=3, randomize=True, random_range_from=70, random_range_to=140)

def clear_cookie():
os.remove("cookie.pkl")

schedule.every().day.at("08:00").do(clear_cookie).tag("daily-tasks")
schedule.every().day.at("09:00").do(clear_cookie).tag("daily-tasks")
schedule.every().day.at("10:00").do(clear_cookie).tag("daily-tasks")
schedule.every().day.at("11:00").do(clear_cookie).tag("daily-tasks")
schedule.every().day.at("12:00").do(clear_cookie).tag("daily-tasks")
schedule.every().day.at("13:00").do(clear_cookie).tag("daily-tasks")
schedule.every().day.at("14:00").do(clear_cookie).tag("daily-tasks")
schedule.every().day.at("15:00").do(clear_cookie).tag("daily-tasks")
schedule.every().day.at("16:00").do(clear_cookie).tag("daily-tasks")
schedule.every().day.at("17:00").do(clear_cookie).tag("daily-tasks")
schedule.every().day.at("18:00").do(clear_cookie).tag("daily-tasks")

schedule.every().day.at("08:18").do(job)
schedule.every().day.at("09:31").do(job)
schedule.every().day.at("10:25").do(job)
schedule.every().day.at("11:11").do(job)
schedule.every().day.at("12:04").do(job)
schedule.every().day.at("13:07").do(job)
schedule.every().day.at("14:18").do(job)
schedule.every().day.at("15:08").do(job)
schedule.every().day.at("16:15").do(job)
schedule.every().day.at("17:07").do(job)
schedule.every().day.at("18:13").do(job)

while True:
schedule.run_pending()
time.sleep(10)`

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Start with the Quickstart script included in the issue and run it on macOS while capturing the Console error that stops the program. Inspect how the job and scheduling loop handle that failure. Done means the reported error behavior is understood and the scheduled program continues or exits according to an explicitly documented expectation.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
developer-experience
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.