IDE Pycharm on Windows

Asked

Viewed 45 times

0

I already have a habit of using Pycharm over GNU/Linux, and by force majeure I will have to use it over Windows.

The problem is this: When running the python script from the IDE, a python Crawler, the program does not finish. It’s like going into an infinite loop. And because of this html is not written to disk.

Question: How to complete the release of a python script on the Pycharm IDE console running on MS/Windows?

Observing: The executed code was generated on Linux. And it works perfectly.

Sample Excerpt:

import requests
import inspect
def truncus05d(url):
    page = requests.get(url)
    with open('{}.html'.format(inspect.stack()[0][3]), 'w') as file:
        file.write(page.text.strip())

Complete code in: https://pastebin.com/qdCNHueT

  • 1

    And what’s the code? Put it in the question.

  • the following code: https://pastebin.com/UW73pdDH

  • 1

    Ask the question or ask a [mcve]

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.