karlxu
V2EX  ›  问与答

python 里如何获取访问的网址真实 IP?

  •  
  •   karlxu · Jan 12, 2016 · 1672 views
    This topic created in 3902 days ago, the information mentioned may be changed or developed.
    如果想监控一个网址的可用性,可以用 urllib2 得到返回码,但是访问失败想记录 ip ,现在都是 cnd ,请问如何获取真实 IP?
    谢谢!
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5296 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 07:15 · PVG 15:15 · LAX 00:15 · JFK 03:15
    ♥ Do have faith in what you're doing.