okainov / ebay-kleinanzeigen

Telegram bot notifying about new ads on Ebay-Kleinanzeigen.de
64 stars 19 forks source link

IndexError: list index out of range #5

Closed mlupoo closed 2 years ago

mlupoo commented 2 years ago

Hi, I can not understand what exactly the error is. Does somebody has any idea?

[INFO] Running job "echo (trigger: interval[0:02:00], next run at: 2022-04-20 20:21:34 UTC)" (scheduled at 2022-04-20 20:19:34.563367+00:00)

[INFO] Started echo

[ERROR] Job "echo (trigger: interval[0:02:00], next run at: 2022-04-20 20:21:34 UTC)" raised an exception

Traceback (most recent call last):

  File "/usr/local/lib/python3.8/site-packages/apscheduler/executors/base.py", line 125, in run_job

    retval = job.func(*job.args, **job.kwargs)

  File "/app/main.py", line 121, in echo

    last_items[chat_id] = {'last_item': items[0].url, 'search_url': url}

IndexError: list index out of range
larsf96 commented 2 years ago

This repo seems to be outdated. Some DOM elements changed and at least for me, I'm getting HTTP 403 when accessing ebay. I will do a pull request do fix this

larsf96 commented 2 years ago

@mlupoo The pull request should fix this problem