Git Product home page Git Product logo

buyers-guide's Introduction

screenshot

Buyer's Guide Theif Worker

使用 cloudflare workers 从 macrumors 抓取 buyer's guide

关于数据存储

Cloudflare 的 D1、KV、Durable Object 都可以用来存储数据。
这个例子中使用的是 D1。
因为 KV 的免费读写次数比较少。DurableObject 最适合但需要开通付费计划。
故使用 D1 进行数据存储,如果你有条件应该替换项目中的 D1 为 DurableObject 以提高性能。

数据抓取

使用 cheerio 进行数据抓取。
网页结构可能变化,你将需要自行修改那部分的代码以获取正确的数据。

Taro client

修改packages/server/wrangler.toml.examplepackages/server/wrangler.toml,并替换你的 cloudflare 账号信息。
修改 packages/client/.env.production 中的地址为你的 worker 地址。

apple product svg: https://www.dimensions.com/

buyers-guide's People

Contributors

group900-3 avatar

Stargazers

 avatar Maemolee avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.