karlxu
V2EX  ›  问与答

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

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