AJAYK-01/KTU-Notifier

Bot fails to Update

HariSK20 opened this issue · 3 comments

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

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

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!!

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

Sure!