[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を設定してください'
}
bundle install
bundle exec rake test
docker-compose up
Content type
Image
Digest
Size
345.5 MB
Last updated
almost 6 years ago
docker pull webuilder240/ogp_parse_api