SpiderClub / haipproxy

:sparkling_heart: High available distributed ip proxy pool, powerd by Scrapy and Redis
https://spiderclub.github.io/haipproxy/
MIT License
5.44k stars 912 forks source link

别的程序里面怎么获取IP #47

Closed BadDeveloper2022 closed 6 years ago

BadDeveloper2022 commented 6 years ago

我想把这个程序当做一个提供代理的服务端,然后别的程序里面调用某个链接来获取IP。 这个怎么实现?

ResolveWang commented 6 years ago

自己用flask或者django写个 restful 接口获取就行了,具体注意事项请阅读开发者文档

BadDeveloper2022 commented 6 years ago

能不能直接Redis里面获取

ResolveWang commented 6 years ago

能啊,你读文档和代码吧,里面有细节