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
- Host: GitHub
- URL: https://github.com/ttys026/cfo
- Owner: ttys026
- License: mit
- Created: 2024-09-20T08:47:33.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-09-23T07:57:37.000Z (7 months ago)
- Last Synced: 2025-03-24T08:54:30.649Z (about 1 month ago)
- Topics: cloudflare, cloudflare-workers, og, open-graph, opengraph
- Language: TypeScript
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)