I have a Python parser that should periodically receive information from the Internet, in particular, it should determine the country by IP, and enter the information into a local database. Here is an excerpt from my code:
whois_info = ipwhois.IPWhois(ip).lookup_rdap()
code=whois_info.get('network').get('country').upper()
country = pycountry.countries.get(alpha_2=code).name
Security Options of my task
I decided to run the parser through the Windows Server 2012 task Scheduler. Everything works fine from my regular user, however, when I choose to run the task on behalf of SYSTEM, the parser will not have access to the Internet
What could be the main reason?
There is no Internet access on the machine, so a corporate proxy is used. The corporate proxy settings were set on the system account, but this did not solve the problem.
Даниил Сенцов is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.