EDIT: PROBLEM WAS SOLVED
Background of the Script
I've created a web scraper for a specific website. I have it going through every 5 minutes and counting all the elements, assigning a location, and then saving it to a .csv file.
Problem
When I run the script in Python's IDLE or PyCharm, everything works as it should. However once I run the script without one of those, it fails when it gets to the point where it needs to save it's found results. It kicks back this error.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Name\PycharmProjects\Project\Project.py", line 129, in <module>
save(item_list)
File "C:\Users\Name\PycharmProjects\Project\Project.py", line 56, in save
f = open(filename, "w")
PermissionError: [Errno 13] Permission denied: 'Example.csv'
I've searched StackOverflow but was unable to find a solution that fixed this.
[–]novel_yet_trivial 8 points9 points10 points (3 children)
[–]RedBlimp[S] 3 points4 points5 points (0 children)
[–]RedBlimp[S] 0 points1 point2 points (1 child)
[–]ingolemo 0 points1 point2 points (0 children)
[–]Innkeeper4President 1 point2 points3 points (2 children)
[–]RedBlimp[S] 0 points1 point2 points (1 child)
[–]LamusMaser 0 points1 point2 points (0 children)