当前位置:网站首页>IP池设计思考(面试点)[通俗易懂]
IP池设计思考(面试点)[通俗易懂]
2022-07-30 10:30:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
IP池设计思考(面试点)
面试中IP代理池的几个问题:
- IP怎么剔除的 通过设置失败次数, 超过失败次数就会删除, 可以自定义失败次数.
- 免费代理多久抓取一次 10min抓取一次, 代码实现可在ProxyRefreshSchedule.py中查看。每过10min就去目标网站抓取一次。有些网站不更新,当然如果是自己买的IP代理不用考虑代理不会更新的情况,因为买的IP数量应该是足够的。
- 怎么接入自己的代理设置 在GetFreeProxy类中(该文件在ProxyGetter文件夹中), 添加自己的静态方法, 扩展自己的代理.扩展的IP可以是免费代理,也可以是购买的IP代理。
- 代理多久验证一次 每五分钟,ProxyValidSchedule.py文件中可以查看。每过5min就会检测现有的可用的代理的情况。将不符合的代理剔除掉。剔除的原理是一次检测不成功就会剔除,当然也可以设置10次,100次等。
- 新代理检测频率 每一分钟检测一次, 先将获取的代理保存在数据库里面名为raw_proxy, 然后将该代理每1min检测一次, 检测成功的放入userful_proxy, userfull_proxy是每5min检测一次.
- API接口怎么实现的 通过flask, 在本地实现的接口.将数据库里面的代理提取出来。
- get是随机获取一个IP
- delete是删除指定的IP
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/129461.html原文链接:https://javaforall.cn
边栏推荐
- 线程池方式开启线程--submit()和execute()的区别
- 【C和指针第七章】可变参数列表
- 这种叫什么手法
- Multithreading--the usage of threads and thread pools
- 第2章 常用安全工具
- SST-Calib: A lidar-visual extrinsic parameter calibration method combining semantics and VO for spatiotemporal synchronization calibration (ITSC 2022)
- [Qualcomm][Network] 网络拨号失败和netmgrd服务分析
- Redis Desktop Manager 2022.4.2 发布
- By building a sequence table - teach you to calculate time complexity and space complexity (including recursion)
- nacos实战项目中的配置
猜你喜欢

Online target drone prompt.ml

2022全球数字经济大会人工智能专场:AI安全受高度关注

BERT预训练模型系列总结

Re19: Read the paper Paragraph-level Rationale Extraction through Regularization: A case study on European Court

TestNg整合Retry代码

New in GNOME: Warn users when Secure Boot is disabled

PyQt5 - draw sine curve with pixels

Redis Desktop Manager 2022.4.2 released

jmeter接口压力测试-(二)

360发布面向未来的EDR,全方位守护政企用户终端安全
随机推荐
第1章 Kali与靶机系统
XYplorer 23多语言,最好的管理软件之一
Js array operating mobile for encapsulation
【HMS core】【Analytics Kit】【FAQ】如何解决华为分析付费分析中付款金额显示为0的问题?
Security Thought Project Summary
Meikle Studio - see the actual combat notes of Hongmeng device development 4 - kernel development
BERT pre-training model series summary
Do you really understand the 5 basic data structures of Redis?
Security tip: FreeType in Qt
系统设计精选 | 基于FPGA的CAN总线控制器的设计(附代码)
nacos实战项目中的配置
Flask's routing (app.route) detailed
这种叫什么手法
【 HMS core 】 【 Analytics Kit] [FAQ] how to solve the payment amount in huawei pay analysis shows zero problem?
idea2021+Activiti [the most complete note one (basic use)]
[Deep Learning] (Problem Record)
- Linear Regression - Small Batch Stochastic Gradient Descent Soft test system architects introductory tutorial | system operation and software maintenance
STM32CubeMX configuration to generate FreeRTOS project
If someone asks you about distributed transactions again, throw this to him
Re16: Read the paper ILDC for CJPE: Indian Legal Documents Corpus for Court Judgment Prediction and Explanation