I have a python script which doing web scrapes with beautifoulSoup. I converted it to an .exe and running it. It works perfectly on my pc. Now I tried to start the same .exe on my Server (VPS) but it didn't work. I get every time a NoneType Exception.
Both are Windows Systems. My code looks like this:
page = requests.get(link, headers=headers) soup = BeautifulSoup(page.content, 'html.parser') title = soup.find(id="productTitle").getText()
I also tried it with different User Agents. Everytime it works on my PC but not on the VPS. Has anyone an idea, what the problem is?
1.4m articles
1.4m replys
5 comments
57.0k users