[https://hub.docker.com/r/webuilder240/ogp_parse_api/]
[https://powerful-sierra-79664.herokuapp.com/]
curl https://powerful-sierra-79664.herokuapp.com/?url=http://ogp.me | jq
{
"image": "http://ogp.me/logo.png",
"description": "The Open Graph protocol enables any web page to become a rich object in a social graph.",
"title": "Open Graph protocol",
"url": "http://ogp.me"
}
name | required | type | Description |
---|---|---|---|
url | True | string | scrape url |
curl https://powerful-sierra-79664.herokuapp.com/?url=http://ogp.me | jq
{
"image": "http://ogp.me/logo.png",
"description": "The Open Graph protocol enables any web page to become a rich object in a social graph.",
"title": "Open Graph protocol",
"url": "http://ogp.me"
}
curl https://powerful-sierra-79664.herokuapp.com/?url= | jq
{
error: '正しいURLを設定してください'
}
- 2.4.x, 2.5.x, 2.6.x
- latest
- REDIS_URL
- Redis url (Default: 'redis://127.0.0.1:6379')
- REDIS_TTL
- Expire key TTL (Default: 604800 [1 week])
- WEB_CONCURRENCY
- Puma Worker Count (Default: 1)
- MAX_THREADS
- Puma Thread Count (Default: 5)
bundle install
bundle exec rake test
docker-compose up