{"id":8429,"date":"2017-02-13T10:15:23","date_gmt":"2017-02-13T13:15:23","guid":{"rendered":"http:\/\/wiki.dialhost.com.br\/?p=8429"},"modified":"2019-04-24T12:03:53","modified_gmt":"2019-04-24T15:03:53","slug":"como-rodar-scripts-em-python","status":"publish","type":"post","link":"https:\/\/www.dialhost.com.br\/ajuda\/como-rodar-scripts-em-python\/","title":{"rendered":"Como rodar scripts em Python ?"},"content":{"rendered":"<p>\t\t\t\tH\u00e1 alguns pontos que voc\u00ea deve verificar antes de iniciar com seu script Python.<br \/>\nAqui estou listando alguns pontos r\u00e1pidos para seu teste.<\/p>\n<div id=\"toc_container\" class=\"have_bullets\"><p class=\"toc_title\">T&oacute;picos<\/p><ul class=\"toc_list\"><li><a href=\"#ola-mundo-8211-um-exemplo-de-script-python-para-testar-isso\">Ol\u00e1 Mundo!! &#8211; Um exemplo de script Python para testar isso !!<\/a><\/li><li><a href=\"#nao-se-esqueca-de-adicionar-addhandler-no-arquivo-htaccess\">N\u00e3o se esque\u00e7a de adicionar AddHandler no arquivo .htaccess !!<\/a><\/li><\/ul><\/div>\n<h2><span id=\"ola-mundo-8211-um-exemplo-de-script-python-para-testar-isso\">Ol\u00e1 Mundo!! &#8211; Um exemplo de script Python para testar isso !!<\/span><\/h2>\n<p>Sim, para testar isso voc\u00ea deve ter um c\u00f3digo Python de teste. Aqui est\u00e1 o c\u00f3digo de teste do hello world:<\/p>\n<pre>\n#! \/usr\/bin\/python\n\nprint \"Content-type: text\/html\\n\\n\"\nprint \"Hello world!!\"\n<\/pre>\n<p><strong>Altere a permiss\u00e3o do seu arquivo para 755<\/strong>. Est\u00e1 altera\u00e7\u00e3o pode ser realizada pelo Painel de Controle da DialHost no \u00edcone Gerenciador de Arquivos ou atrav\u00e9s de seu programa de FTP.<\/p>\n<h2><span id=\"nao-se-esqueca-de-adicionar-addhandler-no-arquivo-htaccess\">N\u00e3o se esque\u00e7a de adicionar AddHandler no arquivo .htaccess !!<\/span><\/h2>\n<pre>\nOptions +ExecCGI\nAddHandler cgi-script .py\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>H\u00e1 alguns pontos que voc\u00ea deve verificar antes de iniciar com seu script Python. Aqui estou listando alguns pontos r\u00e1pidos para seu teste. T&oacute;picosOl\u00e1 Mundo!! &#8211; Um exemplo de script Python para testar isso !!N\u00e3o se esque\u00e7a de adicionar AddHandler no arquivo .htaccess !! Ol\u00e1 Mundo!! &#8211; Um exemplo de script Python para testar isso [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[552,553,603,1],"tags":[395],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Como rodar scripts em Python ? - Central de Atendimento e Ajuda DialHost<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dialhost.com.br\/ajuda\/como-rodar-scripts-em-python\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Como rodar scripts em Python ? - Central de Atendimento e Ajuda DialHost\" \/>\n<meta property=\"og:description\" content=\"H\u00e1 alguns pontos que voc\u00ea deve verificar antes de iniciar com seu script Python. Aqui estou listando alguns pontos r\u00e1pidos para seu teste. T&oacute;picosOl\u00e1 Mundo!! &#8211; Um exemplo de script Python para testar isso !!N\u00e3o se esque\u00e7a de adicionar AddHandler no arquivo .htaccess !! Ol\u00e1 Mundo!! &#8211; Um exemplo de script Python para testar isso [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dialhost.com.br\/ajuda\/como-rodar-scripts-em-python\/\" \/>\n<meta property=\"og:site_name\" content=\"Central de Atendimento e Ajuda DialHost\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/www.facebook.com\/DialHost\" \/>\n<meta property=\"article:published_time\" content=\"2017-02-13T13:15:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-04-24T15:03:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dialhost.com.br\/ajuda\/wp-content\/uploads\/2019\/04\/og-image.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"M\u00e1rcio Rubens\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dialhost\" \/>\n<meta name=\"twitter:site\" content=\"@dialhost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"M\u00e1rcio Rubens\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dialhost.com.br\/ajuda\/como-rodar-scripts-em-python\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dialhost.com.br\/ajuda\/como-rodar-scripts-em-python\/\"},\"author\":{\"name\":\"M\u00e1rcio Rubens\",\"@id\":\"\/ajuda\/#\/schema\/person\/d832054c80a693f96b03c4b512c36900\"},\"headline\":\"Como rodar scripts em Python ?\",\"datePublished\":\"2017-02-13T13:15:23+00:00\",\"dateModified\":\"2019-04-24T15:03:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dialhost.com.br\/ajuda\/como-rodar-scripts-em-python\/\"},\"wordCount\":107,\"publisher\":{\"@id\":\"\/ajuda\/#organization\"},\"keywords\":[\"python\"],\"articleSection\":[\"Hospedagem de Sites\",\"Hospedagem Linux\",\"Python\",\"Todos Artigos\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dialhost.com.br\/ajuda\/como-rodar-scripts-em-python\/\",\"url\":\"https:\/\/www.dialhost.com.br\/ajuda\/como-rodar-scripts-em-python\/\",\"name\":\"Como rodar scripts em Python ? - Central de Atendimento e Ajuda DialHost\",\"isPartOf\":{\"@id\":\"\/ajuda\/#website\"},\"datePublished\":\"2017-02-13T13:15:23+00:00\",\"dateModified\":\"2019-04-24T15:03:53+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.dialhost.com.br\/ajuda\/como-rodar-scripts-em-python\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dialhost.com.br\/ajuda\/como-rodar-scripts-em-python\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dialhost.com.br\/ajuda\/como-rodar-scripts-em-python\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"\/ajuda\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Todos Artigos\",\"item\":\"\/ajuda\/base-de-conhecimento\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Como rodar scripts em Python ?\"}]},{\"@type\":\"WebSite\",\"@id\":\"\/ajuda\/#website\",\"url\":\"\/ajuda\/\",\"name\":\"Central de Atendimento e Ajuda DialHost\",\"description\":\"Central de Atendimento DialHost - Receba suporte e ajuda com informa\u00e7\u00f5es e artigos para tirar as d\u00favidas mais comuns sobre nossos servi\u00e7os.\",\"publisher\":{\"@id\":\"\/ajuda\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"\/ajuda\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"\/ajuda\/#organization\",\"name\":\"DialHost Internet\",\"url\":\"\/ajuda\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"\/ajuda\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.dialhost.com.br\/ajuda\/wp-content\/uploads\/2019\/04\/dialhost-logo.png\",\"contentUrl\":\"https:\/\/www.dialhost.com.br\/ajuda\/wp-content\/uploads\/2019\/04\/dialhost-logo.png\",\"width\":81,\"height\":81,\"caption\":\"DialHost Internet\"},\"image\":{\"@id\":\"\/ajuda\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.instagram.com\/dialhost_oficial\/\",\"https:\/\/www.linkedin.com\/company\/dialhost-internet\",\"https:\/\/www.youtube.com\/channel\/UCAiqiX8IiqTSfA8wQhpzgXQ\",\"http:\/\/www.facebook.com\/DialHost\",\"https:\/\/twitter.com\/dialhost\"]},{\"@type\":\"Person\",\"@id\":\"\/ajuda\/#\/schema\/person\/d832054c80a693f96b03c4b512c36900\",\"name\":\"M\u00e1rcio Rubens\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"\/ajuda\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a24dc83734de00a3e362de5f7352d6b3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a24dc83734de00a3e362de5f7352d6b3?s=96&d=mm&r=g\",\"caption\":\"M\u00e1rcio Rubens\"},\"url\":\"https:\/\/www.dialhost.com.br\/ajuda\/author\/marciorubens\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Como rodar scripts em Python ? - Central de Atendimento e Ajuda DialHost","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dialhost.com.br\/ajuda\/como-rodar-scripts-em-python\/","og_locale":"en_US","og_type":"article","og_title":"Como rodar scripts em Python ? - Central de Atendimento e Ajuda DialHost","og_description":"H\u00e1 alguns pontos que voc\u00ea deve verificar antes de iniciar com seu script Python. Aqui estou listando alguns pontos r\u00e1pidos para seu teste. T&oacute;picosOl\u00e1 Mundo!! &#8211; Um exemplo de script Python para testar isso !!N\u00e3o se esque\u00e7a de adicionar AddHandler no arquivo .htaccess !! Ol\u00e1 Mundo!! &#8211; Um exemplo de script Python para testar isso [&hellip;]","og_url":"https:\/\/www.dialhost.com.br\/ajuda\/como-rodar-scripts-em-python\/","og_site_name":"Central de Atendimento e Ajuda DialHost","article_publisher":"http:\/\/www.facebook.com\/DialHost","article_published_time":"2017-02-13T13:15:23+00:00","article_modified_time":"2019-04-24T15:03:53+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.dialhost.com.br\/ajuda\/wp-content\/uploads\/2019\/04\/og-image.png","type":"image\/png"}],"author":"M\u00e1rcio Rubens","twitter_card":"summary_large_image","twitter_creator":"@dialhost","twitter_site":"@dialhost","twitter_misc":{"Written by":"M\u00e1rcio Rubens","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dialhost.com.br\/ajuda\/como-rodar-scripts-em-python\/#article","isPartOf":{"@id":"https:\/\/www.dialhost.com.br\/ajuda\/como-rodar-scripts-em-python\/"},"author":{"name":"M\u00e1rcio Rubens","@id":"\/ajuda\/#\/schema\/person\/d832054c80a693f96b03c4b512c36900"},"headline":"Como rodar scripts em Python ?","datePublished":"2017-02-13T13:15:23+00:00","dateModified":"2019-04-24T15:03:53+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dialhost.com.br\/ajuda\/como-rodar-scripts-em-python\/"},"wordCount":107,"publisher":{"@id":"\/ajuda\/#organization"},"keywords":["python"],"articleSection":["Hospedagem de Sites","Hospedagem Linux","Python","Todos Artigos"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.dialhost.com.br\/ajuda\/como-rodar-scripts-em-python\/","url":"https:\/\/www.dialhost.com.br\/ajuda\/como-rodar-scripts-em-python\/","name":"Como rodar scripts em Python ? - Central de Atendimento e Ajuda DialHost","isPartOf":{"@id":"\/ajuda\/#website"},"datePublished":"2017-02-13T13:15:23+00:00","dateModified":"2019-04-24T15:03:53+00:00","breadcrumb":{"@id":"https:\/\/www.dialhost.com.br\/ajuda\/como-rodar-scripts-em-python\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dialhost.com.br\/ajuda\/como-rodar-scripts-em-python\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dialhost.com.br\/ajuda\/como-rodar-scripts-em-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"\/ajuda\/"},{"@type":"ListItem","position":2,"name":"Todos Artigos","item":"\/ajuda\/base-de-conhecimento\/"},{"@type":"ListItem","position":3,"name":"Como rodar scripts em Python ?"}]},{"@type":"WebSite","@id":"\/ajuda\/#website","url":"\/ajuda\/","name":"Central de Atendimento e Ajuda DialHost","description":"Central de Atendimento DialHost - Receba suporte e ajuda com informa\u00e7\u00f5es e artigos para tirar as d\u00favidas mais comuns sobre nossos servi\u00e7os.","publisher":{"@id":"\/ajuda\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"\/ajuda\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"\/ajuda\/#organization","name":"DialHost Internet","url":"\/ajuda\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"\/ajuda\/#\/schema\/logo\/image\/","url":"https:\/\/www.dialhost.com.br\/ajuda\/wp-content\/uploads\/2019\/04\/dialhost-logo.png","contentUrl":"https:\/\/www.dialhost.com.br\/ajuda\/wp-content\/uploads\/2019\/04\/dialhost-logo.png","width":81,"height":81,"caption":"DialHost Internet"},"image":{"@id":"\/ajuda\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.instagram.com\/dialhost_oficial\/","https:\/\/www.linkedin.com\/company\/dialhost-internet","https:\/\/www.youtube.com\/channel\/UCAiqiX8IiqTSfA8wQhpzgXQ","http:\/\/www.facebook.com\/DialHost","https:\/\/twitter.com\/dialhost"]},{"@type":"Person","@id":"\/ajuda\/#\/schema\/person\/d832054c80a693f96b03c4b512c36900","name":"M\u00e1rcio Rubens","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"\/ajuda\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a24dc83734de00a3e362de5f7352d6b3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a24dc83734de00a3e362de5f7352d6b3?s=96&d=mm&r=g","caption":"M\u00e1rcio Rubens"},"url":"https:\/\/www.dialhost.com.br\/ajuda\/author\/marciorubens\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dialhost.com.br\/ajuda\/wp-json\/wp\/v2\/posts\/8429"}],"collection":[{"href":"https:\/\/www.dialhost.com.br\/ajuda\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dialhost.com.br\/ajuda\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dialhost.com.br\/ajuda\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dialhost.com.br\/ajuda\/wp-json\/wp\/v2\/comments?post=8429"}],"version-history":[{"count":0,"href":"https:\/\/www.dialhost.com.br\/ajuda\/wp-json\/wp\/v2\/posts\/8429\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dialhost.com.br\/ajuda\/wp-json\/wp\/v2\/media?parent=8429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dialhost.com.br\/ajuda\/wp-json\/wp\/v2\/categories?post=8429"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dialhost.com.br\/ajuda\/wp-json\/wp\/v2\/tags?post=8429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}