• 请不要在回答技术问题时复制粘贴 AI 生成的内容
licoycn
V2EX  ›  程序员

上车, girls-reptile 2.x 已支持自定义采集源

  •  
  •   licoycn ·
    Licoy · Sep 16, 2019 · 2034 views
    This topic created in 2429 days ago, the information mentioned may be changed or developed.

    之前的版本架构都是将网址写死在程序里面的,但是这样的话有很大的诟病,但是又想完全本地化,所以就弄了一个采集源规则,在实际开始开发之前都在想到底是使用 selector 还是 xpath 来作为元素获取的方法,后来选用了 cheerio,所以就直接选用了 selector,果然还是得心应手。

    目前已支持了三个站点,理论上只要是符合图片列表->图片详情这样的规则的网站都可以采集,有用到的小伙伴们点个 star 哦 ~ 非专业前端,写的不好请各位指导!

    仓库地址: https://github.com/Licoy/girls-reptile

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5638 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 57ms · UTC 08:41 · PVG 16:41 · LAX 01:41 · JFK 04:41
    ♥ Do have faith in what you're doing.