0littleboy
V2EX  ›  iOS

iOS APP 与 爬虫交互问题?

  •  
  •   0littleboy · Mar 8, 2023 · 1220 views
    This topic created in 1208 days ago, the information mentioned may be changed or developed.

    现在我基本实现了一个 APP 的大致内容,唯一的问题就是数据交互

    APP 的数据来源于 Python 爬虫的结果( json 文件)

    有两种类型数据,目前有想到一些解决方案

    1. 公有的数据(所有用户共享的),对于这部分我准备用 cloudkit 存储,但是由于数据定期要更新,我准备将爬虫部署到 github action 中,定时爬虫,如果发现数据有更新就推送到 cloud 上
    2. 私有的数据(每个用户在 APP 中可以添加关注人),这部分需要和爬虫接口交互,更大的问题我考虑的是爬虫我目前一个人使用就算了,如果我将爬虫部署在服务器上,n 多个用户访问爬虫,爬虫再去访问别人的服务器,这样会不会导致别人封锁我的 IP ?目前能想到的解决方案是,APP 内部直接让用户调用 Python 爬虫(或许这种方案也能适用于公有的数据)

    不知道有没有表达清楚,这些方案还都没有实践过,希望大家能帮我看看哪种方案可行

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2712 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 10:21 · PVG 18:21 · LAX 03:21 · JFK 06:21
    ♥ Do have faith in what you're doing.