Instapy: Telegram and monitoring alerts

Created on 18 Dec 2018  Â·  9Comments  Â·  Source: timgrossmann/InstaPy

I saw lots of posts with "feature requests" but I don't know how to do that.
I have a new feature request / suggestion here.

I know currently there is a script written to use telegram to control some function.
Can we add a few more monitoring reporting functions:

  1. Whenever there is an error occurred such as xpath, elements not found, a message is sent to telegram automatically.
  2. Whenever there is an exception error and the bot gets terminated, send a message to telegram automatically.
wontfix

All 9 comments

Hi! The bot telegram i'ts already working in this way.
When a jobs end the output will be send to your Telegram. If the job ended because there was an exception the general.log lines will be messaged to you.

With the last commit I've write a method for parse the output of log but i forgot to parse the errors. ops.

Is there a help or instructions file like the readme.md here to teach us how to use it?

Regards,
Kevin Cheng

On 19 Dec 2018, at 3:25 AM, Alessandro Maggio <[email protected]notifications@github.com> wrote:

Hi! The bot telegram i'ts already working in this way.
When a jobs end the output will be send to your Telegram. If the job ended because there was an exception the general.log lines will be messaged to you.

With the last commit I've write a method for parse the output of log but i forgot to parse the errors. ops.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/timgrossmann/InstaPy/issues/3610#issuecomment-448339485, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AiWb1Sm-ovWTmhAi0CUkZmSkrnqHYeYwks5u6UEQgaJpZM4ZYb7_.

@spikeyhair

Hey mate yes its working like a charm !

check it out Telegram-InstaPy-Scheduling

and open README for help.

That means i need to send /log to telegram bot to get the n lines of logs, right?
What I mean in the feature request is to get the message automatically whenever there is an error or bot gets terminated abnormally.

Can you also give me the link on how to setup telegram in python (windows)?

Hit this error:
C:UsersAdministratorDropboxInstapyscripts>py main.py
Traceback (most recent call last):
File "main.py", line 13, in
from scripts import scripts
ModuleNotFoundError: No module named 'scripts'

Can you give the step by step on how to setup?

Have you read the README?

Of cause I did

On 20 Dec 2018, at 6:10 PM, Alessandro Maggio <[email protected]notifications@github.com> wrote:

Have you read the README?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/timgrossmann/InstaPy/issues/3610#issuecomment-448944036, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AiWb1U5BkVUySlH17u3A0Uz0CScRkAc2ks5u62IRgaJpZM4ZYb7_.

From README:

Rename scripts.py.dist in scripts.py and edit it.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this problem still occurs, please open a new issue

Was this page helpful?
0 / 5 - 0 ratings

Related issues

deronsizemore picture deronsizemore  Â·  3Comments

CodeMaster1 picture CodeMaster1  Â·  3Comments

v77v picture v77v  Â·  3Comments

46960 picture 46960  Â·  3Comments

harrypython picture harrypython  Â·  3Comments