Songshuzheng

 找回密码
 立即注册
搜索
查看: 964|回复: 0

Python使用requests模块查询 IP

[复制链接]

62

主题

62

帖子

362

积分

超级版主

Rank: 8Rank: 8

积分
362
发表于 2020-6-18 11:06:23 | 显示全部楼层 |阅读模式
本帖最后由 Note 于 2020-6-18 14:18 编辑

IP 地址查询 ip138.com

macOS 中,在 Terminal 输入 curl 某些站点,即可看到自己电脑的公网 IP 地址。

  1. curl ip-api.com  # 推荐
  2. curl icanhazip.com
  3. curl ident.me
复制代码


- python 检测代理IP是否有效 https://blog.csdn.net/xc_zhou/article/details/103497543

- python学习-使用requests模块查询ip地址 https://blog.51cto.com/11555417/2104159
学习笔记:淘宝IP地址库 http://ip.taobao.com/

- python学习笔记9——requests 获取当前ip https://www.jianshu.com/p/a317f7095a9a
学习笔记:
> AttributeError: 'WrappedSocket' object has no attribute 'getpeername'

- python requests库爬取网页小实例:ip地址查询 https://blog.csdn.net/weixin_30603633/article/details/94902275


- 2020-02-07 How to find your IP address in Linux https://opensource.com/article/18/5/how-find-ip-address-linux


- How do I get the IP address from a http request using the requests library? https://stackoverflow.com/questi ... he-requests-library


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Songshuzheng

GMT+8, 2026-7-29 14:24 , Processed in 0.076519 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表