https://github.com/uk0/favicondb
favicon database
https://github.com/uk0/favicondb
Last synced: 12 months ago
JSON representation
favicon database
- Host: GitHub
- URL: https://github.com/uk0/favicondb
- Owner: uk0
- Created: 2025-01-05T14:12:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-21T01:02:49.000Z (over 1 year ago)
- Last Synced: 2025-06-21T04:55:45.577Z (12 months ago)
- Language: Python
- Size: 571 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## favicondb (获取网站的favicon图标)
A Simple favicon database
* 默认第一次会返回灰色地球,后续会返回真实的favicon图标(当task运行完成后。)
* examples
```bash
http://127.0.0.1:8000/api/v1/favicon/https://x.com
or
http://127.0.0.1:8000/api/v1/favicon/x.com
```

### install python dependencies and dev running.
```bash
conda create -n "favicondb" python==3.10
```
```bash
conda activate favicondb
```
```bash
pip install -r requirements.txt
```
### start server
* start celery worker
```bash
celery -A minitask.get_favicom.celery_app worker --loglevel=info
```
* start web server
```bash
python main.py
```
### quick start (docker)
* docker build
```bash
docker build --platform=linux/amd64 -t firshme/favicondb -f Dockerfile .
```
* docker-compose start
```bash
docker-compose up -d
```