{ "info": { "author": "CSIRT Foundry / Chris Horsley", "author_email": "chris.horsley@csirtfoundry.com", "bugtrack_url": null, "classifiers": [], "description": "===========\nBulkWhois\n===========\n\nBulkWhois provides a simple interface to several bulk whois servers. This \nallows you to look up the ASNs, AS names, country codes, and other assorted\ninformation very efficiently for a large number of IP addresses.\n\nCurrently implemented bulk whois servers are:\n Cymru: BulkWhoisCymru\n Shadowserver: BulkWhoisShadowserver\n\nNote that these whois servers generally only accept IPv4 IP addresses, not \nhostnames. IPv6 support is not widely supported by bulk whois servers at\npresent, but will add in support once this becomes available.\n\nSo, it's up to the caller to convert hostnames to IP addresses first. \nAnything which isn't an IPv4 address generates a warning and is dropped \nbefore sending to the whois server.\n\n\nUsage::\n\n #!/usr/bin/env python\n\n from bulkwhois.shadowserver import BulkWhoisShadowserver\n\n bulk_whois = BulkWhoisShadowserver()\n records = bulk_whois.lookup_ips([\"212.58.246.91\", \"203.2.218.214\"])\n\n for record in records:\n print \"\\t\".join([records[record][\"ip\"], records[record][\"asn\"], \n records[record][\"as_name\"], records[record][\"cc\"]])\n \nInstallation\n============\n\npython setup.py install\n\nImplementation\n==============\n\nCurrent implementation assumes accessing a bulk whois server with a telnet-like\ninterface. Generally, input takes the form of:\n\nbegin\n192.168.0.1\n192.168.0.2\nend\n\nNote that different bulk whois servers return different data, so better to \nchoose one you're happy with first and stick with it to keep things \nconsistent.\n\nFor example, using different modules the sample code returns this:\n\nBulkWhoisShadowServer\n\n203.2.218.214 9342 ABCNET-AS AU\n212.58.246.91 2818 BBC UK\n\nBulkWhoisCymru\n\n203.2.218.214 9342 ABCNET-AS-AP Australian Broadcasting Commission AU\n212.58.246.91 2818 BBC BBC Internet Services, UK GB\n\nFurther information:\n\nhttp://www.shadowserver.org/wiki/pmwiki.php/Services/IP-BGP\nhttp://www.team-cymru.org/Services/ip-to-asn.html", "description_content_type": null, "docs_url": null, "download_url": "http://github.com/csirtfoundry/BulkWhois/tarball/master", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/BulkWhois/", "keywords": null, "license": "LICENSE.txt", "maintainer": null, "maintainer_email": null, "name": "BulkWhois", "package_url": "https://pypi.org/project/BulkWhois/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/BulkWhois/", "project_urls": { "Download": "http://github.com/csirtfoundry/BulkWhois/tarball/master", "Homepage": "http://pypi.python.org/pypi/BulkWhois/" }, "release_url": "https://pypi.org/project/BulkWhois/0.2.1/", "requires_dist": null, "requires_python": null, "summary": "Interfaces for popular bulk WHOIS servers", "version": "0.2.1" }, "last_serial": 783888, "releases": { "0.2.0": [], "0.2.1": [ { "comment_text": "", "digests": { "md5": "c3c9a5eecac62f210f41675a83f11ed0", "sha256": "f1e96ba9d08f4225ad691e16921e7c05aae05cf27eb6681d2fc09a9172d9453a" }, "downloads": -1, "filename": "BulkWhois-0.2.1.tar.gz", "has_sig": false, "md5_digest": "c3c9a5eecac62f210f41675a83f11ed0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5241, "upload_time": "2011-08-07T17:08:02", "url": "https://files.pythonhosted.org/packages/54/c7/eae57374f68090f755406d49d25774c45dd41a5435ad176cd87ab6452f4a/BulkWhois-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c3c9a5eecac62f210f41675a83f11ed0", "sha256": "f1e96ba9d08f4225ad691e16921e7c05aae05cf27eb6681d2fc09a9172d9453a" }, "downloads": -1, "filename": "BulkWhois-0.2.1.tar.gz", "has_sig": false, "md5_digest": "c3c9a5eecac62f210f41675a83f11ed0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5241, "upload_time": "2011-08-07T17:08:02", "url": "https://files.pythonhosted.org/packages/54/c7/eae57374f68090f755406d49d25774c45dd41a5435ad176cd87ab6452f4a/BulkWhois-0.2.1.tar.gz" } ] }