This is a very simple code
that is designed to scrap the Super 6 website for a date and then push a message to my phone if the time is within 12 hours.
It works perfectly fine when I run it manually from the pythonanywhere servers. It works fine when the time is over 12 hours away. But once it runs via the scheduler and calls the send message function it runs into an error.
The log reads:
Traceback (most recent call last):
File "/home/spacedlevo/super6/scrap_super6.py", line 71, in <module>
pushover_notification(msg)
File "/home/spacedlevo/super6/scrap_super6.py", line 20, in pushover_notification
urllib.parse.urlencode({
AttributeError: 'module' object has no attribute 'parse'
2017-08-26 10:01:31 -- Completed task, took 35.00 seconds, return code was 1