captainGeech42 / ransomwatch

Ransomware leak site monitoring
MIT License
305 stars 64 forks source link

Pysa scraper crashing #77

Closed wersas1 closed 2 years ago

wersas1 commented 2 years ago

Describe the bug Pysa scraper produces an error: if len(published.split('/')[2]) == 4: / IndexError: list index out of range

To Reproduce

  1. Input right Pysa site URL
  2. Run ransomwatch task

Expected behavior Scraper works on Pysa.

Screenshots image

Logs app_1 | 2021/11/27 18:09:50 [ERROR] Got an error while scraping Pysa, notifying app_1 | 2021/11/27 18:09:50 [ERROR] Traceback (most recent call last): app_1 | File "/app/ransomwatch.py", line 77, in main app_1 | s.scrape_victims() app_1 | File "/app/sites/pysa.py", line 33, in scrape_victims app_1 | if len(published.split('/')[2]) == 4: app_1 | IndexError: list index out of range

Environment

Additional context