SlideShare a Scribd company logo
1 of 61
Archiving the Mobile
Web
Frank McCown, Monica Yarbrough, &
Keith Enlow
Computer Science Dept
Harding University
WADL 2013
Indianapolis, IN
July 25, 2013
Mobile vs. Stationary Web
Mobile Web-Related Markup
Languages
http://en.wikipedia.org/wiki/File:Mobile_Web_Standards_Evolution_Vector.svg
Smartphone era
Two Types of Mobile Web
Feature Phone Web Smartphone Web
cHTML (iMode), WML,
WAP, etc.
XHTML, HTML5, etc.
Serving Up Mobile Sites
1. Responsive web design
• Same HTML content to desktop and mobile
• CSS media queries alter appearance
<!-- CSS media query on a link element -->
<link rel="stylesheet" media="(max-width: 800px)" href="example.css" />
<!-- CSS media query within a style sheet -->
<style>
@media (max-width: 600px) {
.sidebar { display: none; }
}
</style>
Example of Responsive Web
Design
Serving Up Mobile Sites
1. Responsive web design
• Same HTML content to desktop and mobile
• CSS media queries alter appearance
2. Redirect mobile user agent to mobile site
• Client-side redirection
• Server-side redirection
Client-Side Redirection
• JavaScript detects mobile user agent
// From www.harding.edu
var ua = navigator.userAgent.toLowerCase();
if (queryString.match('version=mobile') ||
ua.match(/IEMobile|Windows CE|NetFront|PlayStation|like Mac OS
Z|MIDP|UP.Browser|Symbian|
Nintendo|BlackBerry|mobile/i)) {
if (!ua.match('ipad')) {
if (window.location.pathname.match('.html'))
window.location = window.location.pathname.replace('.html', '.m.html');
else
window.location = window.location.pathname + 'index.m.html';
}
}
Client-Side Redirection
Server-Side Redirection
• Server routes mobile user agent to different page
Apache Example:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_USER_AGENT}
(android|bbd+|meego).+mobile|avantgo|badda/|blackberry|blazer|etc…|zte-) [NC]
RewriteRule ^$ http://detectmobilebrowser.com/mobile [R,L]
https://developers.google.com/webmasters/smartphone-sites/details
Server-Side Redirection
Serving Up Mobile Sites
1. Responsive web design
• Same HTML content to desktop and mobile
• CSS media queries alter appearance
2. Redirect mobile user agent to mobile site
• Client-side redirection
• Server-side redirection
3. User-agent content negotiation
• Dynamically serving different HTML for the same URL
User-Agent Content
Negotiation
• Server serves up different content
for same URL
• Use Vary: User-Agent
header in response
• Best method for serving content
quickly
Archiving Mobile Sites
1. Responsive web design
• Easy: Crawl like normal
• Use client tools to view page formatted for mobile
2. Redirect mobile user agent to mobile site
• Need to crawl with mobile user agent
• Need JavaScript-enabled crawler to handle client-side
redirection
3. User-agent content negotiation
• Need to crawl with mobile user agent
• Need to distinguish mobile vs. desktop for same URL
How are we doing
archiving mobile sites so
far?
Earliest
archived
page
Earliest 2007 archived
page: WML
Finally some
news!
Really???
Great…
Only desktop
version is
archived!
Mobile Finder
By Monica Yarbrough
Google’s Suggestions for SEO
• Vary HTTP Header
• Annotations within the HTML:
• On desktop page:
• <link rel=“alternate” media=“only screen and (max-width:
640px)” href=“http://m.example.com/page-1” >
• On mobile page:
• <link rel=“canonical” href=“http://www.example.com/page-1”
>
• Media queries
https://developers.google.com/webmasters/smartphone-sites/
How Mobile Finder Works
• Use both desktop and mobile useragents
• Look for:
• Redirect
• Different content
• Different stylesheets
• Media queries
How Mobile Finder Works
• Change the url to fit common mobile url patterns
ex: www.t-mobile.com m.t-mobile.com
PhantomJs
• Headless WebKit (browser)
• Well-known and widely used
• Used to get the content of a page
• Takes snapshots of the sites it visits
• Scriptable with coffeescript or javascript
Web Service
• Query string with 2 parameters
• url (required)
• useragent (optional)
• http://cs.harding.edu/mobilefinder/service.php?url=URL&u
seragent=USER_AGENT
• Default useragent = Mozilla/5.0 (iPhone; U; CPU iPhone OS
4_1 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like
Gecko) Version/4.0.5 Mobile/8B117 Safari/6531.22.7
(compatible; mediaqueries/1.0; +http://cs.harding.edu)
Results
<MobileFinder>
<url>http://www.cnn.com/</url>
<mobileUrl>http://www.cnn.com/</mobileUrl>
<reason>
<code>400</code>
<message>differing content</message>
</reason>
<useragent> Mozilla/5.0 (Android; Linux armv7l; rv:9.0)
Gecko/20111216 Firefox/9.0 Fennec/9.0</useragent>
<timeAccessed>2013-07-20 15:23:42</timeAccessed>
<error/>
<MobileFinder/>
Limitations
• Crashing
• Inconsistent results
• Problems executing javascript redirection
• Falsely fails when it actually gets the content
• Fails to get url of page accessed
• Slow
Limitations
• Client-side Redirects
www.golferen.no/wip4/ (right)
www.ng.kz/ (below)
Analysis Results
• Accuracy (of 100 random hand-checked results)
• 96 % accurate overall
• 1 % inaccurately record not found when there is in fact a
mobile version
• 3 % inaccurately say mobile found when there is not a
mobile version
Nytimes desktop
vs mobile
Rakuten.co.jp
desktop vs mobile
Are Google’s Suggestions
Used?
• 28 % found a mobile version following Google’s
suggestions
• 85 % found as having some sort of mobile version
Are Google’s Suggestions
Used?
• 28 % found following Google’s suggestions
• Of the 82% that were found as not following the
rules:
• 93% missing vary HTTP header
• 89% missing alternate and canonical links
Are Google’s Suggestions
Used?
• 28 % found following Google’s suggestions
• 85 % found as having some sort of mobile version
• Redirect: 35%
• “Significantly” different content: 28%
• Stylesheets alone: 9%
• Stylesheets and media queries: 11%
• Media queries alone: 6%
• Differing urls (trial and error): 11%
End Result
• As a whole, mobile web pages do not adhere to
Google’s standards
• There are no truly consistent ways for finding a
mobile version of a site
Keith Enlow
Heritrix Mobile
Introduction
• Heritrix 3.1
• Mobile Finder Web Service
• 2 Options
• Crawl desktop web pages (default)
• Crawl mobile web pages using Mobile finder and
exclude mobile web pages that use media queries.
Experiment
• Decision Making Heritrix
• Web Service (Mobile Finder) Heritrix
• Modified Heritrix 3.1 to include two options for crawling
• Option 0: Crawl with desktop user agent
• Option 1: Crawl with mobile user agent using Mobile Finder
• Added built in mobile user agent adapted from Google Bot
• Crawled a small set of URLs
• Used Mobile Finder to find if the given URL has mobile
version
• Wrote a small script to discover differences between the
mobile and desktop versions
<property name="userAgentTemplate"
value="Mozilla/5.0 (compatible; heritrix/@VERISON@+
@OPERATOR_CONTACT_URL@)"/>
<property name="userAgentTemplateMobile"
value="Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_1 like Mac OS X; en-us)
AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8B117
Safari/6531.22.7 (compatible; heritrix/@VERSION@+
@OPERATOR_CONTACT_URL@"/>
<!-- Option # = Description
0 [Default] Crawl using desktop user agent
1 Crawl using mobile user agent + Mobile Finder Web Service --
>
<property name="CrawlOption" value="0" />
URLs Crawled
Desktop URL Mobile URL
• www.huffingtonpost.com
• www.foxnews.com
• www.nbcnews.com
• www.whitehouse.gov
• www.nasa.gov
• www.ssa.gov
• www.cornell.edu
• www.stanford.edu
• www.mit.edu
• m.huffpost.com
• foxnews.mobi
• www.nbcnews.com
• m.whitehouse.gov
• mobile.nasa.gov
• www.ssa.gov/mobile
• m.cornell.edu/#home
• m.stanford.edu
• m.mit.edu /
mobile.mit.edu
Redirection/Delivery
• 200 Response (server side redirect)
• 302 “Temporary” relocation
• 301 “Permanent” relocation
• JavaScript Redirection (client side redirect)
• Media Queries
• Style Sheets
Tiny Limits
• No JavaScript Engine
• Heritrix is unable to perform and execute JavaScript
code
• Unable to catch client side redirection and will instead
continue to crawl the desktop version of the web page.
Note: The Mobile Finder Web Service will find the mobile page and therefore Heritrix will
continue the crawl.
• www.nasa.gov
• www.ssa.gov
• www.cornell.edu
Hufington Fox News NBC News NASA SSA White House Stanford Cornell MIT
56774 12703 8894 4960 2380 8121 2351 2901 120
2134 110 3545 63 53 570 116 94 124
Total Link Count
HTML Distribution
Huffington Fox News NBC News NASA SSA White House Stanford Cornell MIT
11550 2681 2302 851 20 3251 385 596 12
493 35 488 18 0 76 16 31 26
JavaScript Distribution
Huffington Fox News NBC News NASA SSA White House Stanford Cornell MIT
245 107 46 589 12 83 104 525 2
33 4 14 8 0 13 4 8 0
CSS Distribution
Huffington Fox News NBC News NASA SSA White House Stanford Cornell MIT
587 301 72 304 1 154 214 86 3
36 3 17 1 0 19 8 4 3
Image Distribution
Huffington Fox News NBC NASA SSA
White
House Stanford Cornell MIT
38671 8893 5852 2908 17 4187 1460 1484 87
1227 59 2769 28 0 436 74 4 89
Acknowledgements
• Internet Archive aided in Mobile Finder work
• Funded by NSF grant 1008492

More Related Content

Similar to Archiving the Mobile Web

Best Practices for Mobile Sites
Best Practices for Mobile SitesBest Practices for Mobile Sites
Best Practices for Mobile SitesNavneet Kaushal
 
The Magic of Mobile SEO - ##CZLNY
The Magic of Mobile SEO - ##CZLNYThe Magic of Mobile SEO - ##CZLNY
The Magic of Mobile SEO - ##CZLNYJohn Shehata
 
Mobile SEO (English Version)
Mobile SEO (English Version)Mobile SEO (English Version)
Mobile SEO (English Version)ssuserd60633
 
Survey of Mobile
Survey of MobileSurvey of Mobile
Survey of Mobileamyhannah84
 
Mobile Web for Libraries
Mobile Web for LibrariesMobile Web for Libraries
Mobile Web for Librariesamyhannah84
 
C3 2014 Main Stage John Shehata
C3 2014 Main Stage John ShehataC3 2014 Main Stage John Shehata
C3 2014 Main Stage John ShehataConductor
 
Why Mobile, Why Now? | John Shehata – Executive Director of Search & Social M...
Why Mobile, Why Now? | John Shehata – Executive Director of Search & Social M...Why Mobile, Why Now? | John Shehata – Executive Director of Search & Social M...
Why Mobile, Why Now? | John Shehata – Executive Director of Search & Social M...Conductor
 
Advanced Mobile SEO - John Shehata - C3 2014
Advanced Mobile SEO - John Shehata - C3 2014Advanced Mobile SEO - John Shehata - C3 2014
Advanced Mobile SEO - John Shehata - C3 2014John Shehata
 
Responsive Web Design - Tom Robertshaw
Responsive Web Design - Tom RobertshawResponsive Web Design - Tom Robertshaw
Responsive Web Design - Tom RobertshawMeet Magento Spain
 
The Death of the Desktop: The Future For Mobile SEO
The Death of the Desktop: The Future For Mobile SEOThe Death of the Desktop: The Future For Mobile SEO
The Death of the Desktop: The Future For Mobile SEORegan McGregor
 
JQuery mobile
JQuery mobileJQuery mobile
JQuery mobileGary Yeh
 
Multi screen HTML5
Multi screen HTML5Multi screen HTML5
Multi screen HTML5Ron Reiter
 
Mobile Website or Responsive Design? The Answer is NEITHER.
Mobile Website or Responsive Design? The Answer is NEITHER.Mobile Website or Responsive Design? The Answer is NEITHER.
Mobile Website or Responsive Design? The Answer is NEITHER.TWG
 
Should I Build a Separate Mobile Site or a Responsive Site? Neither! with Der...
Should I Build a Separate Mobile Site or a Responsive Site? Neither! with Der...Should I Build a Separate Mobile Site or a Responsive Site? Neither! with Der...
Should I Build a Separate Mobile Site or a Responsive Site? Neither! with Der...FITC
 
Web 2.0 & 3.0 technologies & SoLoMo
Web 2.0 & 3.0 technologies & SoLoMoWeb 2.0 & 3.0 technologies & SoLoMo
Web 2.0 & 3.0 technologies & SoLoMoJake Aull
 
SMX London 2014 - Best Practices for Mobile SEO - Shawn Dragann
SMX London 2014 - Best Practices for Mobile SEO - Shawn DragannSMX London 2014 - Best Practices for Mobile SEO - Shawn Dragann
SMX London 2014 - Best Practices for Mobile SEO - Shawn DragannIdea Evolver
 
Mobile SEO Best Practices & Tips
Mobile SEO Best Practices & TipsMobile SEO Best Practices & Tips
Mobile SEO Best Practices & TipsNavneet Kaushal
 

Similar to Archiving the Mobile Web (20)

Best Practices for Mobile Sites
Best Practices for Mobile SitesBest Practices for Mobile Sites
Best Practices for Mobile Sites
 
Barry mobile-seo
Barry mobile-seoBarry mobile-seo
Barry mobile-seo
 
Going mobile
Going mobileGoing mobile
Going mobile
 
The Magic of Mobile SEO - ##CZLNY
The Magic of Mobile SEO - ##CZLNYThe Magic of Mobile SEO - ##CZLNY
The Magic of Mobile SEO - ##CZLNY
 
Mobile SEO (English Version)
Mobile SEO (English Version)Mobile SEO (English Version)
Mobile SEO (English Version)
 
Survey of Mobile
Survey of MobileSurvey of Mobile
Survey of Mobile
 
Mobile Web for Libraries
Mobile Web for LibrariesMobile Web for Libraries
Mobile Web for Libraries
 
C3 2014 Main Stage John Shehata
C3 2014 Main Stage John ShehataC3 2014 Main Stage John Shehata
C3 2014 Main Stage John Shehata
 
Why Mobile, Why Now? | John Shehata – Executive Director of Search & Social M...
Why Mobile, Why Now? | John Shehata – Executive Director of Search & Social M...Why Mobile, Why Now? | John Shehata – Executive Director of Search & Social M...
Why Mobile, Why Now? | John Shehata – Executive Director of Search & Social M...
 
Advanced Mobile SEO - John Shehata - C3 2014
Advanced Mobile SEO - John Shehata - C3 2014Advanced Mobile SEO - John Shehata - C3 2014
Advanced Mobile SEO - John Shehata - C3 2014
 
Responsive Web Design - Tom Robertshaw
Responsive Web Design - Tom RobertshawResponsive Web Design - Tom Robertshaw
Responsive Web Design - Tom Robertshaw
 
The Death of the Desktop: The Future For Mobile SEO
The Death of the Desktop: The Future For Mobile SEOThe Death of the Desktop: The Future For Mobile SEO
The Death of the Desktop: The Future For Mobile SEO
 
JQuery mobile
JQuery mobileJQuery mobile
JQuery mobile
 
Multi screen HTML5
Multi screen HTML5Multi screen HTML5
Multi screen HTML5
 
Mobile Website or Responsive Design? The Answer is NEITHER.
Mobile Website or Responsive Design? The Answer is NEITHER.Mobile Website or Responsive Design? The Answer is NEITHER.
Mobile Website or Responsive Design? The Answer is NEITHER.
 
Should I Build a Separate Mobile Site or a Responsive Site? Neither! with Der...
Should I Build a Separate Mobile Site or a Responsive Site? Neither! with Der...Should I Build a Separate Mobile Site or a Responsive Site? Neither! with Der...
Should I Build a Separate Mobile Site or a Responsive Site? Neither! with Der...
 
Web 2.0 & 3.0 technologies & SoLoMo
Web 2.0 & 3.0 technologies & SoLoMoWeb 2.0 & 3.0 technologies & SoLoMo
Web 2.0 & 3.0 technologies & SoLoMo
 
Power Mobile Apps with Sitecore
Power Mobile Apps with SitecorePower Mobile Apps with Sitecore
Power Mobile Apps with Sitecore
 
SMX London 2014 - Best Practices for Mobile SEO - Shawn Dragann
SMX London 2014 - Best Practices for Mobile SEO - Shawn DragannSMX London 2014 - Best Practices for Mobile SEO - Shawn Dragann
SMX London 2014 - Best Practices for Mobile SEO - Shawn Dragann
 
Mobile SEO Best Practices & Tips
Mobile SEO Best Practices & TipsMobile SEO Best Practices & Tips
Mobile SEO Best Practices & Tips
 

Recently uploaded

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 

Recently uploaded (20)

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 

Archiving the Mobile Web

  • 1. Archiving the Mobile Web Frank McCown, Monica Yarbrough, & Keith Enlow Computer Science Dept Harding University WADL 2013 Indianapolis, IN July 25, 2013
  • 4. Two Types of Mobile Web Feature Phone Web Smartphone Web cHTML (iMode), WML, WAP, etc. XHTML, HTML5, etc.
  • 5.
  • 6. Serving Up Mobile Sites 1. Responsive web design • Same HTML content to desktop and mobile • CSS media queries alter appearance <!-- CSS media query on a link element --> <link rel="stylesheet" media="(max-width: 800px)" href="example.css" /> <!-- CSS media query within a style sheet --> <style> @media (max-width: 600px) { .sidebar { display: none; } } </style>
  • 8. Serving Up Mobile Sites 1. Responsive web design • Same HTML content to desktop and mobile • CSS media queries alter appearance 2. Redirect mobile user agent to mobile site • Client-side redirection • Server-side redirection
  • 9. Client-Side Redirection • JavaScript detects mobile user agent // From www.harding.edu var ua = navigator.userAgent.toLowerCase(); if (queryString.match('version=mobile') || ua.match(/IEMobile|Windows CE|NetFront|PlayStation|like Mac OS Z|MIDP|UP.Browser|Symbian| Nintendo|BlackBerry|mobile/i)) { if (!ua.match('ipad')) { if (window.location.pathname.match('.html')) window.location = window.location.pathname.replace('.html', '.m.html'); else window.location = window.location.pathname + 'index.m.html'; } }
  • 11. Server-Side Redirection • Server routes mobile user agent to different page Apache Example: RewriteEngine On RewriteBase / RewriteCond %{HTTP_USER_AGENT} (android|bbd+|meego).+mobile|avantgo|badda/|blackberry|blazer|etc…|zte-) [NC] RewriteRule ^$ http://detectmobilebrowser.com/mobile [R,L] https://developers.google.com/webmasters/smartphone-sites/details
  • 13. Serving Up Mobile Sites 1. Responsive web design • Same HTML content to desktop and mobile • CSS media queries alter appearance 2. Redirect mobile user agent to mobile site • Client-side redirection • Server-side redirection 3. User-agent content negotiation • Dynamically serving different HTML for the same URL
  • 14. User-Agent Content Negotiation • Server serves up different content for same URL • Use Vary: User-Agent header in response • Best method for serving content quickly
  • 15. Archiving Mobile Sites 1. Responsive web design • Easy: Crawl like normal • Use client tools to view page formatted for mobile 2. Redirect mobile user agent to mobile site • Need to crawl with mobile user agent • Need JavaScript-enabled crawler to handle client-side redirection 3. User-agent content negotiation • Need to crawl with mobile user agent • Need to distinguish mobile vs. desktop for same URL
  • 16. How are we doing archiving mobile sites so far?
  • 17.
  • 25. Google’s Suggestions for SEO • Vary HTTP Header • Annotations within the HTML: • On desktop page: • <link rel=“alternate” media=“only screen and (max-width: 640px)” href=“http://m.example.com/page-1” > • On mobile page: • <link rel=“canonical” href=“http://www.example.com/page-1” > • Media queries https://developers.google.com/webmasters/smartphone-sites/
  • 26. How Mobile Finder Works • Use both desktop and mobile useragents • Look for: • Redirect • Different content • Different stylesheets • Media queries
  • 27. How Mobile Finder Works • Change the url to fit common mobile url patterns ex: www.t-mobile.com m.t-mobile.com
  • 28. PhantomJs • Headless WebKit (browser) • Well-known and widely used • Used to get the content of a page • Takes snapshots of the sites it visits • Scriptable with coffeescript or javascript
  • 29. Web Service • Query string with 2 parameters • url (required) • useragent (optional) • http://cs.harding.edu/mobilefinder/service.php?url=URL&u seragent=USER_AGENT • Default useragent = Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_1 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8B117 Safari/6531.22.7 (compatible; mediaqueries/1.0; +http://cs.harding.edu)
  • 30. Results <MobileFinder> <url>http://www.cnn.com/</url> <mobileUrl>http://www.cnn.com/</mobileUrl> <reason> <code>400</code> <message>differing content</message> </reason> <useragent> Mozilla/5.0 (Android; Linux armv7l; rv:9.0) Gecko/20111216 Firefox/9.0 Fennec/9.0</useragent> <timeAccessed>2013-07-20 15:23:42</timeAccessed> <error/> <MobileFinder/>
  • 31. Limitations • Crashing • Inconsistent results • Problems executing javascript redirection • Falsely fails when it actually gets the content • Fails to get url of page accessed • Slow
  • 33. Analysis Results • Accuracy (of 100 random hand-checked results) • 96 % accurate overall • 1 % inaccurately record not found when there is in fact a mobile version • 3 % inaccurately say mobile found when there is not a mobile version
  • 36. Are Google’s Suggestions Used? • 28 % found a mobile version following Google’s suggestions • 85 % found as having some sort of mobile version
  • 37. Are Google’s Suggestions Used? • 28 % found following Google’s suggestions • Of the 82% that were found as not following the rules: • 93% missing vary HTTP header • 89% missing alternate and canonical links
  • 38. Are Google’s Suggestions Used? • 28 % found following Google’s suggestions • 85 % found as having some sort of mobile version • Redirect: 35% • “Significantly” different content: 28% • Stylesheets alone: 9% • Stylesheets and media queries: 11% • Media queries alone: 6% • Differing urls (trial and error): 11%
  • 39. End Result • As a whole, mobile web pages do not adhere to Google’s standards • There are no truly consistent ways for finding a mobile version of a site
  • 41. Introduction • Heritrix 3.1 • Mobile Finder Web Service • 2 Options • Crawl desktop web pages (default) • Crawl mobile web pages using Mobile finder and exclude mobile web pages that use media queries.
  • 42. Experiment • Decision Making Heritrix • Web Service (Mobile Finder) Heritrix • Modified Heritrix 3.1 to include two options for crawling • Option 0: Crawl with desktop user agent • Option 1: Crawl with mobile user agent using Mobile Finder • Added built in mobile user agent adapted from Google Bot • Crawled a small set of URLs • Used Mobile Finder to find if the given URL has mobile version • Wrote a small script to discover differences between the mobile and desktop versions
  • 43. <property name="userAgentTemplate" value="Mozilla/5.0 (compatible; heritrix/@VERISON@+ @OPERATOR_CONTACT_URL@)"/> <property name="userAgentTemplateMobile" value="Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_1 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8B117 Safari/6531.22.7 (compatible; heritrix/@VERSION@+ @OPERATOR_CONTACT_URL@"/> <!-- Option # = Description 0 [Default] Crawl using desktop user agent 1 Crawl using mobile user agent + Mobile Finder Web Service -- > <property name="CrawlOption" value="0" />
  • 44. URLs Crawled Desktop URL Mobile URL • www.huffingtonpost.com • www.foxnews.com • www.nbcnews.com • www.whitehouse.gov • www.nasa.gov • www.ssa.gov • www.cornell.edu • www.stanford.edu • www.mit.edu • m.huffpost.com • foxnews.mobi • www.nbcnews.com • m.whitehouse.gov • mobile.nasa.gov • www.ssa.gov/mobile • m.cornell.edu/#home • m.stanford.edu • m.mit.edu / mobile.mit.edu
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.
  • 53.
  • 54. Redirection/Delivery • 200 Response (server side redirect) • 302 “Temporary” relocation • 301 “Permanent” relocation • JavaScript Redirection (client side redirect) • Media Queries • Style Sheets
  • 55. Tiny Limits • No JavaScript Engine • Heritrix is unable to perform and execute JavaScript code • Unable to catch client side redirection and will instead continue to crawl the desktop version of the web page. Note: The Mobile Finder Web Service will find the mobile page and therefore Heritrix will continue the crawl. • www.nasa.gov • www.ssa.gov • www.cornell.edu
  • 56. Hufington Fox News NBC News NASA SSA White House Stanford Cornell MIT 56774 12703 8894 4960 2380 8121 2351 2901 120 2134 110 3545 63 53 570 116 94 124 Total Link Count
  • 57. HTML Distribution Huffington Fox News NBC News NASA SSA White House Stanford Cornell MIT 11550 2681 2302 851 20 3251 385 596 12 493 35 488 18 0 76 16 31 26
  • 58. JavaScript Distribution Huffington Fox News NBC News NASA SSA White House Stanford Cornell MIT 245 107 46 589 12 83 104 525 2 33 4 14 8 0 13 4 8 0
  • 59. CSS Distribution Huffington Fox News NBC News NASA SSA White House Stanford Cornell MIT 587 301 72 304 1 154 214 86 3 36 3 17 1 0 19 8 4 3
  • 60. Image Distribution Huffington Fox News NBC NASA SSA White House Stanford Cornell MIT 38671 8893 5852 2908 17 4187 1460 1484 87 1227 59 2769 28 0 436 74 4 89
  • 61. Acknowledgements • Internet Archive aided in Mobile Finder work • Funded by NSF grant 1008492

Editor's Notes

  1. iPhone introduced in the United States on June 29, 2007