InstaPy / InstaPy/instapy-quickstart
Program Stops
- 主要言語
- Python
- スター
- 777
- フォーク
- 763
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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)`
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
Issue に含まれている Quickstart スクリプトから始め、プログラムを停止させる Console エラーを記録しながら macOS で実行します。job と scheduling loop がその失敗をどのように処理するかを調査します。報告されたエラーの挙動を理解し、スケジュールされたプログラムが明示的に文書化された期待どおりに継続または終了すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- developer-experience
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100