CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Wed, 20 Aug 2025 20:23:13 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20100428071829
location: https://web.archive.org/web/20100428071829/https://github.com/intridea/opengraph
server-timing: captures_list;dur=1.857022, exclusion.robots;dur=0.033706, exclusion.robots.policy;dur=0.011569, esindex;dur=0.024477, cdx.remote;dur=26.375005, LoadShardBlock;dur=320.100486, PetaboxLoader3.datanode;dur=86.490810, PetaboxLoader3.resolve;dur=124.690704
x-app-server: wwwb-app211
x-ts: 302
x-tr: 382
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app211; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Wed, 20 Aug 2025 20:23:14 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Wed, 28 Apr 2010 07:18:29 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "12c2cc990d102ddac84a3ff9e50427bf"
x-archive-orig-x-runtime: 100ms
x-archive-orig-content-length: 24101
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Wed, 28 Apr 2010 07:18:29 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Mon, 26 Apr 2010 02:55:10 GMT", ; rel="prev memento"; datetime="Mon, 26 Apr 2010 02:55:10 GMT", ; rel="memento"; datetime="Wed, 28 Apr 2010 07:18:29 GMT", ; rel="next memento"; datetime="Fri, 02 Sep 2011 03:10:16 GMT", ; rel="last memento"; datetime="Mon, 28 Apr 2025 02:22:56 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_15_20100428051417_crawl100-c/52_15_20100428071738_crawl101.arc.gz
server-timing: captures_list;dur=0.652164, exclusion.robots;dur=0.025593, exclusion.robots.policy;dur=0.011683, esindex;dur=0.013061, cdx.remote;dur=7.796293, LoadShardBlock;dur=238.203082, PetaboxLoader3.datanode;dur=119.283807, PetaboxLoader3.resolve;dur=313.237812, load_resource;dur=248.769436
x-app-server: wwwb-app211
x-ts: 200
x-tr: 571
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
intridea's opengraph at master - GitHub
intridea / opengraph
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (3)
- Wiki (1)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
name | age | message | |
---|---|---|---|
![]() |
.document | Thu Apr 22 10:55:03 -0700 2010 | Initial commit to opengraph. [mbleigh] |
![]() |
.gitignore | Thu Apr 22 10:55:03 -0700 2010 | Initial commit to opengraph. [mbleigh] |
![]() |
LICENSE | Thu Apr 22 12:44:51 -0700 2010 | Update copyright [mbleigh] |
![]() |
README.rdoc | Thu Apr 22 12:44:51 -0700 2010 | Update copyright [mbleigh] |
![]() |
Rakefile | Thu Apr 22 12:31:11 -0700 2010 | Initial import. [mbleigh] |
![]() |
VERSION | Sat Apr 24 07:01:01 -0700 2010 | Version bump to 0.0.3 [mbleigh] |
![]() |
lib/ | Sat Apr 24 07:00:56 -0700 2010 | Adding a strict boolean option to allow for par... [mbleigh] |
![]() |
opengraph.gemspec | Sat Apr 24 07:01:02 -0700 2010 | Regenerated gemspec for version 0.0.3 [mbleigh] |
![]() |
spec/ | Sat Apr 24 07:00:56 -0700 2010 | Adding a strict boolean option to allow for par... [mbleigh] |
README.rdoc
OpenGraph
OpenGraph is a very simple library for parsing Open Graph protocol information from web sites. Learn more about the protocol at:
Installation
gem install opengraph
Usage
require 'opengraph' movie = OpenGraph.fetch('https://www.rottentomatoes.com/m/1217700-kick_ass/') movie.title # => 'Kick-Ass' movie.movie? # => true movie.image # => 'https://images.rottentomatoes.com/images/movie/custom/00/1217700.jpg'
If you try to fetch Open Graph information for a URL that doesn’t have any, the fetch method will return false.. The OpenGraph::Object that is returned is just a Hash with accessors built into it, so you can examine what properties you’ve retrieved like so:
movie.keys # => ['type','image','title','url']
Note on Patches/Pull Requests
- Fork the project.
- Make your feature addition or bug fix.
- Add tests for it. This is important so I don’t break it in a future version unintentionally.
- Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
- Send me a pull request. Bonus points for topic branches.
Copyright
Copyright © 2010 Intridea, Inc. and Michael Bleigh. See LICENSE for details.