Skip to content

Commit

Permalink
add ip and ls
Browse files Browse the repository at this point in the history
  • Loading branch information
juga0 committed May 16, 2016
1 parent f28d86e commit 98a479e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions scraper.py
Expand Up @@ -50,13 +50,31 @@ def obtain_environ():
logger.debug('environ %s' % environ)
return environ


def obtain_dir():
from os import listdir
ls = listdir('/app')
logger.debug('ls /app %s' % ls)
return obtain_dir


def obtain_ip():
import socket
ip = socket.gethostbyname(socket.gethostname())
ip2 = socket.gethostbyname_ex(socket.gethostname())
logger.debug('ip %s' % ip)
logger.debug('ip2 %s' % ip2)
return ip

def main():
obtain_python_version()
obtain_uname()
obtain_system_hostname()
obtain_user()
obtain_home()
obtain_environ()
obtain_dir()
obtain_ip()


if __name__ == "__main__":
Expand Down

0 comments on commit 98a479e

Please sign in to comment.