title: Convert curl command into a working script
body: <p>I am using an API from check-host.net to ping an website.
  My issue is right now that I have no ideea how I could transform the curl command api into an working python script. I tried different approaches which I found on here but sadly none has give me the ouput I am looking for.</p>
  
  <p>Working curl command:</p>
  
  <blockquote>
  <pre><code>curl -H "Accept: application/json" \   https://check-host.net/check-tcp?host=smtp://gmail.com&amp;max_nodes=1
  </code></pre>
  </blockquote>
  
  <p>the respons looks something like that:</p>
  
  <blockquote>
    <p>{   "ok":             1,   "request_id":     "29",   "permanent_link":
    "<a href="https://check-host.net/check-report/29" rel="nofollow noreferrer">https://check-host.net/check-report/29</a>",   "nodes": {
        "7f000001": ["it","Italy", "Marco"]   } }</p>
  </blockquote>