Vous êtes sur la page 1sur 4

Stack Exchange sign up log in tour help careers 2.

0
Stack Overflow
Questions
Tags
Users
Badges
Unanswered
Ask Question
Take the 2-minute tour ? Stack Overflow is a question and answer site for profes
sional and enthusiast programmers. It's 100% free, no registration required.
How can I get the Google cache age of any URL or web page?
up vote
156
down vote
favorite
65
In my project I need the Google cache age to be added as important information.
I tried to search sources for the Google cache age, that is, the number of days
since Google last re-indexed the page listed.
Where can I get the Google cache age?
html url hyperlink website web-scraping
share|improve this question
edited Feb 23 at 20:14
Peter Mortensen
7,35185182
asked Dec 30 '10 at 6:06
Tokendra Kumar Sahu
1,12451520
add comment
2 Answers
activeoldestvotes
up vote
234
down vote
accepted
Use the URL
http://webcache.googleusercontent.com/search?q=cache:<your url without "http://"
>
Example:
http://webcache.googleusercontent.com/search?q=cache:stackoverflow.com
It contains a header like this:
This is Google's cache of http://stackoverflow.com/. It is a snapshot of the pag
e as it appeared on 21 Aug 2012 11:33:38 GMT. The current page could have change
d in the meantime. Learn more
Tip: To quickly find your search term on this page, press Ctrl+F or ?+F (Mac) an
d use the find bar.
share|improve this answer
edited Feb 24 at 10:46
vahid abdi
2,1973821
answered Dec 30 '10 at 6:34
Sean Patrick Floyd
106k19166298
1
Thanks for your answer - it's working. Tokendra Kumar Sahu Dec 30 '10 at 10:56
2
So really it's <your url without "http://">. Toby Champion Aug 13 '12 at 13:15
1
@TobyChampion obviously, yes Sean Patrick Floyd Aug 13 '12 at 13:36
1
I failed over here : webcache.googleusercontent.com/search?q=cache:stackoverflow
.com/ 404. Thats an error. The requested URL /search?q=cache:stackoverflow.com/use
rs was not found on this server. Thats all we know. rzr Aug 21 '12 at 10:33
9
You can also use the cache: search operator in Google search bungeshea Dec 5 '1
2 at 2:47
show 4 more comments
up vote
12
down vote
You'll need to scrape the resulting page, but you can view the most recent cache
page using this URL:
http://webcache.googleusercontent.com/search?q=cache:www.something.com/path
Google information is put in the first div in the body tag.
share|improve this answer
edited Feb 23 at 20:15
Peter Mortensen
7,35185182
answered Dec 30 '10 at 6:33
Ian Wetherbee
3,076920
add comment
protected by Community Dec 25 '12 at 12:59
Thank you for your interest in this question. Because it has attracted low-quali
ty answers, posting an answer now requires 10 reputation on this site.
Would you like to answer one of these unanswered questions instead?
Not the answer you're looking for? Browse other questions tagged html url h
yperlink website web-scraping or ask your own question.
asked
3 years ago
viewed
370250 times
active
3 months ago
Linked
0 Recover Wordpress stylesheet
Related
955 How to encode a URL in JavaScript?
638 How to get the current URL in JavaScript?
524 Modify the URL without reloading the page
2630 How can I get query string values in JavaScript?
788 Get current URL with JavaScript?
1 find nearest named anchor to an element on a web page in javascript
9 How to check Google index count of a url or webpage link
0 Generate different urls on each visit(A user can use the URl just once or it e
xpires after 2 minutes etc)
1 How can you get the canonical URL for a web page (Rails)?
Hot Network Questions
Help me with differential calculus!
How do I let characters share knowledge only they know?
how to align equation on page
The efficiency of looping over nested dictionaries in Python
Do you have recommendations for books to self-teach Applied Statistics at the gr
aduate level?
more hot questions
question feed
tour help badges blog chat data legal privacy policy jobs advertising info mobil
e contact us feedback
TECHNOLOGY LIFE / ARTS CULTURE / RECREATION SCIENCE OTHER
Stack Overflow
Server Fault
Super User
Web Applications
Ask Ubuntu
Webmasters
Game Development
TeX - LaTeX
Programmers
Unix & Linux
Ask Different (Apple)
WordPress Development
Geographic Information Systems
Electrical Engineering
Android Enthusiasts
Information Security
Database Administrators
Drupal Answers
SharePoint
User Experience
Mathematica
more (14)
Photography
Science Fiction & Fantasy
Graphic Design
Seasoned Advice (cooking)
Home Improvement
Personal Finance & Money
Academia
more (10)
English Language & Usage
Skeptics
Mi Yodeya (Judaism)
Travel
Christianity
Arqade (gaming)
Bicycles
Role-playing Games
more (21)
Mathematics
Cross Validated (stats)
Theoretical Computer Science
Physics
MathOverflow
more (7)
Stack Apps
Meta Stack Exchange
Area 51
Stack Overflow Careers
site design / logo 2014 stack exchange inc; user contributions licensed under cc
by-sa 3.0 with attribution required
rev 2014.6.18.1665

Vous aimerez peut-être aussi