captainGeech42 / ransomwatch

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

cuba can't spell #64

Open captainGeech42 opened 2 years ago

captainGeech42 commented 2 years ago

Describe the bug Cuba misspelled "July" as "Jule"

Logs

Traceback (most recent call last):
  File "/app/ransomwatch.py", line 66, in main
    s.scrape_victims()
  File "/app/sites/cuba.py", line 115, in scrape_victims
    self._handle_page(r.content.decode(), p)
  File "/app/sites/cuba.py", line 81, in _handle_page
    published_dt = self.extract_published_date(r.content.decode())
  File "/app/sites/cuba.py", line 49, in extract_published_date
    return datetime.strptime(published, "%d %B %Y")
  File "/usr/local/lib/python3.9/_strptime.py", line 568, in _strptime_datetime
    tt, fraction, gmtoff_fraction = _strptime(data_string, format)
  File "/usr/local/lib/python3.9/_strptime.py", line 349, in _strptime
    raise ValueError("time data %r does not match format %r" %
ValueError: time data '31 Jule 2021' does not match format '%d %B %Y'