karlxu
V2EX  ›  问与答

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

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