Giter Club home page Giter Club logo

Comments (4)

PaulSec avatar PaulSec commented on July 16, 2024

Mmmh.. interesting.
I will investigate this and let you know what is happening.

I can't reproduce with python 3.6:

✗ python3
Python 3.6.1 (default, Apr  4 2017, 09:40:21)
[GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.38)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from dnsdumpster.DNSDumpsterAPI import DNSDumpsterAPI
>>> res = DNSDumpsterAPI(True).search('example.com')
[verbose] Retrieved token: aML8I9ctPNosWFRqgEFatv0KSeEhnxkR
>>> res
{'domain': 'example.com', 'dns_records': {'dns': [{'domain': 'b.iana-servers.net.', 'ip': '199.43.133.53', 'reverse_dns': 'b.iana-servers.net', 'as': 'AS1280', 'provider': 'Internet Systems Consortium, Inc.', 'country': 'United States', 'header': ''}, {'domain': 'a.iana-servers.net.', 'ip': '199.43.135.53', 'reverse_dns': 'a.iana-servers.net', 'as': 'AS26710', 'provider': 'ICANN', 'country': 'United States', 'header': ''}], 'mx': [], 'txt': ['"$Id: example.com 4415 2015-08-24 20:12:23Z davids $"', '"v=spf1 -all"'], 'host': [{'domain': 'www.example.com', 'ip': '93.184.216.34', 'reverse_dns': '', 'as': 'AS15133', 'provider': 'MCI Communications Services, Inc. d/b/a Verizon Business', 'country': 'United States', 'header': 'ECS (mdw/13C6)'}]}, 'image_data': b'iVBORw0KGgoAAAANSUhEUgAABi0AAAEVCAIAAAATkzH6AAAABmJLR0QA/wD/AP+gvaeTAAAgAElEQVR4nOzdd3hUZdo/8OeUqZmS3gsBQpX3RQJY2WUtIIo/BBHERR

from api-dnsdumpster.com.

PaulSec avatar PaulSec commented on July 16, 2024

Can you try to update BeautifulSoup by running pip install --upgrade beautifulsoup4 ?
This should fix the issue.

from api-dnsdumpster.com.

gopinath6 avatar gopinath6 commented on July 16, 2024

Its working in python2,
But the result is not proper

image

from api-dnsdumpster.com.

PaulSec avatar PaulSec commented on July 16, 2024

It's working as expected.
What you get first is the image in the image_data entry.

Check this file to interact with the different entries: https://github.com/PaulSec/API-dnsdumpster.com/blob/master/dnsdumpster/API_example.py

from api-dnsdumpster.com.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.