Forums

urllib.parse.urlencode works different in tasks and manual run

Hi,

Could it be the issue with tasks / module versions that causes my issue? I use urllib.parse.urlencode() command to encode a dictionary into url parameters. When I do it manually in my script, I get normal url. When it runs automatically, it produces url with extra symbols "&" which breaks the link.

In the beginning of script I only do: import urllib

Make sure you're using the same Python version in the 2 situations: http://help.pythonanywhere.com/pages/ScheduledTasks/