Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6343331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:25:01+00:00 2026-05-24T20:25:01+00:00

Im trying to use this http://code.google.com/p/pywhois/ along with the socket.gethostbyaddr . import socket import

  • 0

Im trying to use this http://code.google.com/p/pywhois/
along with the socket.gethostbyaddr .

import socket
import pywhois

revip = socket.gethostbyaddr('50.57.48.133')
whois = pywhois.whois(revip[0])
for i in whois.emails:
 print 

Gives me three lines of nothing. Im trying to print out the emails from the whois query. The data stored inside whois.emails is

['josh.odom@rackspace.com', 'josh.odom@rackspace.com', 'support@clickandname.com']

Whats going wrong here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T20:25:02+00:00Added an answer on May 24, 2026 at 8:25 pm

    To get the code working, you need to add i after print:

    for i in whois.emails:
      print i # you may see print(i) because in Python 3 print is a function.
              # and it does not matter in Python < 3
    

    To get this format

    [‘josh.odom@rackspace.com’, ‘josh.odom@rackspace.com’, ‘support@clickandname.com’]

    you call print on the entire list (no looping):

    print whois.emails
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use this library http://code.google.com/p/svg-android/ to get SVGs into android. Here's my
I am trying to use the jQuery CSV plugin, as documented here: http://code.google.com/p/js-tables/wiki/CSV According
I am trying to use the ImageLoader class from libs-for-android (http://code.google.com/p/libs-for-android/), and am getting
I am trying to integrate the code from this demo: http://code.google.com/p/gwt-spring-starter-app/ into my main
I am trying to use : http://code.google.com/p/jspf/ within a GWT framework. I know that
I'm trying to use the pyupnp package (http://code.google.com/p/pyupnp/) I've built and installed it and
I'm trying to use JsonPath for .NET ( http://code.google.com/p/jsonpath/downloads/list ) and I'm having trouble
I'm trying to use the wordalignment in the BerkeleyAligner.jar file from http://code.google.com/p/berkeleyaligner/ in my
I am trying to understand how it's possible to use http://code.google.com/p/django-simple-captcha/ with django comments.
I am currently trying to use this gem http://github.com/pengwynn/linkedin . Everything works fine (i.e.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.