Giter Club home page Giter Club logo

accessibility-scraper's Introduction

accessibilty-scraper

Scripts to scrape a site and detect information about the accessibility and other technology it's using.

Originally written at NHS Hack day Oxford 2013 for the NHS Web site technology audit project/team.

We aim to detect as many of the following features as possible:

Done

Useful files on site:

  • robots.txt
  • humans.txt
  • sitemaps.xml

Server:

  • https avaialable
  • https by default (are we redirected)

TODO:

Useful files on site:

  • XML site map
  • Favicon, apple touch icon etc. - (might check for standard ones from wordpress etc)

Server:

  • Server tech (from headers)
  • Hosting company (from whois of IP address)

HTML:

  • doctype
  • HTML tags & attributes in use (HTML5 etc.)
  • Alt tags on images
  • Screen reader hints (aria attributes)
  • Use of Flash
  • Look for CMS signatures Wordpress etc.
  • CDN for images
  • IE Conditional comments
  • JS use / jQuery etc.
  • Use of Google translate
  • Welsh & other language content
  • Initial redirect?
  • HTML validitiy
  • RSS Links
  • Tables for layout?

Multiple passes:

  • Anything randomized each hit
  • Different site if you send mobile user agent

CSS:

  • css selectors that are used
  • Media query use, other CSS use
  • Font sizes
  • Browser detection hacks being used
  • CSS valid
  • CSS minified

Whole content:

  • Size of download for initial view (download time)

Other (whole site scanning?):

  • Friendly URLs
    • could scan sitemap if available
  • PDFs to download, word docs to download
  • Any AJAX use?

Setup

Requires python with lxml, cssselect

sudo easy_install lxml
sudo easy_install cssselect

accessibility-scraper's People

Contributors

colinfwren avatar rjmunro avatar uglynewt avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.