### <center>python 简单实现ip位置查找</center> 好久没来steem 了 ,今天刚好需要找一个模糊识别ip地址的小工具 就分享出来 用的github大佬写的工具,和自己收集的ip库 github 地址: https://github.com/ipipdotnet/ipdb-python 源码: ``` import ipdb db = ipdb.Reader("ip.ipdb") # print(db.find("2001:250:200::")) # print(db.find_map("2001:250:200::")) while(1): a = input("请输入ip: ") info = db.find_info(a) print(info.country_name, info.region_name, info.city_name, info.owner_domain, info.isp_domain, info.latitude, info.longitude, info.timezone, info.utc_offset) ``` ip.ipdb 这个自己去下载 运行结果如下: 
author | webshell |
---|---|
permlink | python-ip |
category | python |
json_metadata | {"tags":["python","cn","technology","ip","life"],"image":["https://cdn.steemitimages.com/DQmSPc7YxQYTAfcAXmGsyuUC6GMyt3XdtarhDMTaYhRpqDM/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20181029182612.png"],"links":["https://github.com/ipipdotnet/ipdb-python"],"app":"steemit/0.1","format":"markdown"} |
created | 2018-10-29 10:28:48 |
last_update | 2018-10-29 10:28:48 |
depth | 0 |
children | 7 |
last_payout | 2018-11-05 10:28:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.048 HBD |
curator_payout_value | 0.014 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 712 |
author_reputation | 26,383,677,520 |
root_title | "python 简单实现ip位置查找" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 74,266,649 |
net_rshares | 55,351,518,124 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
haiyangdeperci | 0 | 6,813,646,058 | 20% | ||
evil0x00 | 0 | 15,740,955,914 | 100% | ||
root0x00 | 0 | 28,425,844,373 | 100% | ||
webshell | 0 | 441,947,798 | 100% | ||
ustd | 0 | 597,806,090 | 100% | ||
devsup | 0 | 2,775,317,891 | 0.69% | ||
xinjiang | 0 | 556,000,000 | 100% |
author | root0x00 |
---|---|
permlink | re-webshell-python-ip-20181030t011504280z |
category | python |
json_metadata | {"tags":["python"],"app":"steemit/0.1"} |
created | 2018-10-30 01:15:09 |
last_update | 2018-10-30 01:15:09 |
depth | 1 |
children | 1 |
last_payout | 2018-11-06 01:15:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.036 HBD |
curator_payout_value | 0.011 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 10 |
author_reputation | 75,627,896,971 |
root_title | "python 简单实现ip位置查找" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 74,310,017 |
net_rshares | 43,966,416,097 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
evil0x00 | 0 | 16,726,393,538 | 100% | ||
root0x00 | 0 | 26,223,046,341 | 100% | ||
webshell | 0 | 432,117,253 | 100% | ||
ustd | 0 | 584,858,965 | 100% |
author | webshell |
---|---|
permlink | re-root0x00-re-webshell-python-ip-20181031t132148808z |
category | python |
json_metadata | {"tags":["python"],"app":"steemit/0.1"} |
created | 2018-10-31 13:21:51 |
last_update | 2018-10-31 13:21:51 |
depth | 2 |
children | 0 |
last_payout | 2018-11-07 13:21:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.036 HBD |
curator_payout_value | 0.011 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 19 |
author_reputation | 26,383,677,520 |
root_title | "python 简单实现ip位置查找" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 74,408,350 |
net_rshares | 42,064,135,655 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
evil0x00 | 0 | 16,391,255,386 | 100% | ||
root0x00 | 0 | 25,185,742,318 | 100% | ||
webshell | 0 | 487,137,951 | 100% |
Congratulations @webshell! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) : <table><tr><td>https://steemitimages.com/60x70/http://steemitboard.com/@webshell/voted.png?201810291257</td><td>You received more than 250 upvotes. Your next target is to reach 500 upvotes.</td></tr> </table> <sub>_[Click here to view your Board of Honor](https://steemitboard.com/@webshell)_</sub> <sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub> **Do not miss the last post from @steemitboard:** <table><tr><td><a href="https://steemit.com/halloween/@steemitboard/trick-or-treat-publish-your-scariest-halloweeen-story-and-win-a-new-badge"><img src="https://steemitimages.com/64x128/http://i.cubeupload.com/RUyB3u.png"></a></td><td><a href="https://steemit.com/halloween/@steemitboard/trick-or-treat-publish-your-scariest-halloweeen-story-and-win-a-new-badge">Trick or Treat - Publish your scariest halloween story and win a new badge</a></td></tr><tr><td><a href="https://steemit.com/steemitboard/@steemitboard/steemitboard-notifications-improved"><img src="https://steemitimages.com/64x128/http://i.cubeupload.com/NgygYH.png"></a></td><td><a href="https://steemit.com/steemitboard/@steemitboard/steemitboard-notifications-improved">SteemitBoard notifications improved</a></td></tr></table> > Support [SteemitBoard's project](https://steemit.com/@steemitboard)! **[Vote for its witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1)** and **get one more award**!
author | steemitboard |
---|---|
permlink | steemitboard-notify-webshell-20181029t220553000z |
category | python |
json_metadata | {"image":["https://steemitboard.com/img/notify.png"]} |
created | 2018-10-29 22:05:51 |
last_update | 2018-10-29 22:05:51 |
depth | 1 |
children | 0 |
last_payout | 2018-11-05 22:05:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,604 |
author_reputation | 38,975,615,169,260 |
root_title | "python 简单实现ip位置查找" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 74,302,176 |
net_rshares | 0 |
Congratulations @webshell! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) : <table><tr><td>https://steemitimages.com/60x60/http://steemitboard.com/notifications/firstpayout.png</td><td>You got your First payout</td></tr> </table> <sub>_[Click here to view your Board of Honor](https://steemitboard.com/@webshell)_</sub> <sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub> **Do not miss the last post from @steemitboard:** <table><tr><td><a href="https://steemit.com/steemfest/@steemitboard/uk1parhd"><img src="https://steemitimages.com/64x128/https://cdn.steemitimages.com/DQmSz7NTFn1sazJvocuqkN7uZFHxAUTJrVYz7zqYEEExXfY/image.png"></a></td><td><a href="https://steemit.com/steemfest/@steemitboard/uk1parhd">SteemFest³ - SteemitBoard Contest Teaser</a></td></tr><tr><td><a href="https://steemit.com/steemfest/@steemitboard/the-new-steemfest-award-is-ready"><img src="https://steemitimages.com/64x128/https://cdn.steemitimages.com/DQmeEYkuDHNp3c9dC6Q5s8Wysi8DrXR89FHAFiu5XoQW8Vr/SteemitBoard_header_Krakow2018.png"></a></td><td><a href="https://steemit.com/steemfest/@steemitboard/the-new-steemfest-award-is-ready">The new Steemfest³ Award is ready!</a></td></tr></table> > Support [SteemitBoard's project](https://steemit.com/@steemitboard)! **[Vote for its witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1)** and **get one more award**!
author | steemitboard |
---|---|
permlink | steemitboard-notify-webshell-20181106t060026000z |
category | python |
json_metadata | {"image":["https://steemitboard.com/img/notify.png"]} |
created | 2018-11-06 06:00:27 |
last_update | 2018-11-06 06:00:27 |
depth | 1 |
children | 0 |
last_payout | 2018-11-13 06:00:27 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,503 |
author_reputation | 38,975,615,169,260 |
root_title | "python 简单实现ip位置查找" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 74,768,035 |
net_rshares | 0 |
Congratulations @webshell! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) : <table><tr><td>https://steemitimages.com/60x70/http://steemitboard.com/@webshell/votes.png?201811141046</td><td>You made more than 1250 upvotes. Your next target is to reach 1500 upvotes.</td></tr> </table> <sub>_[Click here to view your Board of Honor](https://steemitboard.com/@webshell)_</sub> <sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub> **Do not miss the last post from @steemitboard:** <table><tr><td><a href="https://steemit.com/steemfest/@steemitboard/the-meet-the-steemians-contest-is-over-results-are-coming-soon"><img src="https://steemitimages.com/64x128/https://cdn.steemitimages.com/DQmeLukvNFRsa7RURqsFpiLGEZZD49MiU52JtWmjS5S2wtW/image.png"></a></td><td><a href="https://steemit.com/steemfest/@steemitboard/the-meet-the-steemians-contest-is-over-results-are-coming-soon">The Meet the Steemians Contest is over - Results are coming soon ...</a></td></tr></table> > Support [SteemitBoard's project](https://steemit.com/@steemitboard)! **[Vote for its witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1)** and **get one more award**!
author | steemitboard |
---|---|
permlink | steemitboard-notify-webshell-20181114t143043000z |
category | python |
json_metadata | {"image":["https://steemitboard.com/img/notify.png"]} |
created | 2018-11-14 14:30:42 |
last_update | 2018-11-14 14:30:42 |
depth | 1 |
children | 0 |
last_payout | 2018-11-21 14:30:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,292 |
author_reputation | 38,975,615,169,260 |
root_title | "python 简单实现ip位置查找" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 75,277,853 |
net_rshares | 0 |
author | ustd |
---|---|
permlink | re-webshell-python-ip-20181031t132757634z |
category | python |
json_metadata | {"tags":["python"],"app":"steemit/0.1"} |
created | 2018-10-31 13:27:57 |
last_update | 2018-10-31 13:27:57 |
depth | 1 |
children | 0 |
last_payout | 2018-11-07 13:27:57 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.036 HBD |
curator_payout_value | 0.011 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 6 |
author_reputation | 157,962,129,739 |
root_title | "python 简单实现ip位置查找" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 74,408,716 |
net_rshares | 43,172,071,158 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
evil0x00 | 0 | 15,425,396,609 | 100% | ||
root0x00 | 0 | 26,754,306,850 | 100% | ||
jonesnow | 0 | 0 | 100% | ||
manager0 | 0 | 0 | 100% | ||
rootbeer | 0 | 0 | 100% | ||
aliyuns | 0 | 0 | 100% | ||
webshell | 0 | 476,407,808 | 100% | ||
eos-coin | 0 | 0 | 100% | ||
ustd | 0 | 515,959,891 | 100% |
author | xinjiang |
---|---|
permlink | xinjiang-re-webshell-python-ip-20181031t132600348z |
category | python |
json_metadata | {"app":"partiko"} |
created | 2018-10-31 13:26:00 |
last_update | 2018-10-31 13:26:00 |
depth | 1 |
children | 0 |
last_payout | 2018-11-07 13:26:00 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.022 HBD |
curator_payout_value | 0.007 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 73 |
author_reputation | 32,927,315,550 |
root_title | "python 简单实现ip位置查找" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 74,408,607 |
net_rshares | 27,765,852,919 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
root0x00 | 0 | 27,299,964,856 | 100% | ||
webshell | 0 | 465,888,063 | 100% |