An open API service indexing awesome lists of open source software.

https://github.com/ttys026/cfo

A Cloudflare Open-Graph Scraper based on HTMLRewriter
https://github.com/ttys026/cfo

cloudflare cloudflare-workers og open-graph opengraph

Last synced: about 1 month ago
JSON representation

A Cloudflare Open-Graph Scraper based on HTMLRewriter

Awesome Lists containing this project

README

        

# Cloudflare Open-Graph Scrapper (CFO)

This is a template using HTMLRewriter in Cloudflare Workers to scrap open graph info from a website.

It has zero dependencies and can be deployed on Cloudflare workers with zero configuration by running:

```bash
npm install && npm run deploy
```

Feel free to fork this repo and modify the `src/index.ts` file if you want to make any changes to the code. For example, extract more info from html head tags or add a cache machanism using Cloudflare KV.

See a example:

[https://cfo.tianyi.li/?url=https://www.apple.com/](https://cfo.tianyi.li/?url=https%3A%2F%2Fwww.apple.com%2F)