AJAYK-01 / KTU-Notifier

An NLP based Telegram Bot that pushes KTU Announcements Notifications
http://t.me/ktunotifbot
GNU General Public License v3.0
18 stars 7 forks source link

Bot fails to Update #13

Closed HariSK20 closed 3 years ago

HariSK20 commented 3 years ago

Describe the bug While trying to run the bot, the scrapper function returns an empty list and fails to send notifications. While trying to run scrape() function in scrapper.py, It returns the following error: list index out of range

To Reproduce Steps to reproduce the behavior:

  1. Run the function scrape() from scrapper.py

Expected behavior scrapper.py returns non-empty array of announcements

Screenshots image

Additional context Error is supposedly produced while trying to parse an announcement which is in a different format as shown below image

HariSK20 commented 3 years ago

I may have a solution and I would like to work on it

AJAYK-01 commented 3 years ago

Describe the bug While trying to run the bot, the scrapper function returns an empty list and fails to send notifications. While trying to run scrape() function in scrapper.py, It returns the following error: list index out of range

To Reproduce Steps to reproduce the behavior:

  1. Run the function scrape() from scrapper.py

Expected behavior scrapper.py returns non-empty array of announcements

Screenshots image

Additional context Error is supposedly produced while trying to parse an announcement which is in a different format as shown below image

Yea the bot is currently offline due to scraping bugs and I haven't got time to lookup on the issue yet.

Thank you for pointing out the issue!!

AJAYK-01 commented 3 years ago

I may have a solution and I would like to work on it

Sure!