Skip to content

Is there any way to complete HTTP requests inside python script #19

@ghost

Description

I'm running this example script on Empythoned Demo

import urllib
print urllib.urlopen("http://ipv4.icanhazip.com/").read()

I got an error

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/lib/python2.7/urllib.py", line 26, in <module>
    import socket
  File "/lib/python2.7/socket.py", line 47, in <module>
    import _socket
ImportError: No module named _socket

So, I need to make a HTTP request inside python script. Is there any way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions