Drupaloscopy is a command line shell and Unix scripting to identify Drupal sites and version providing an url.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
hashs-database
LICENSE
README.md
check-changelog.sh
drupaloscopy-aggregation.sh
drupaloscopy-cache.sh
drupaloscopy-header.sh
drupaloscopy.sh
find-baseroot.sh
find-version.sh
generate-filename.sh
generate-hash.sh
get-http-status.sh
get-major-version.sh
get-tags-corresponding-to-hash.sh
index.php
setlog.sh
update-add-file.sh
update-hashs-base.sh
update-hashs-tag-generate.sh
update-hashs-tag.sh
update-release-history.sh

README.md

Drupaloscopy is a command line shell and Unix scripting to identify Drupal sites and version providing an url.

Drupaloscopy can be used cloning this repository and launching drupaloscopy.sh or requesting service throught UI: Drupaloscopy.com.

Script response is in JSON format.

Requirements

Drush is required to know recommended version of Drupal.

How to use on local ?

  • Clone this repo
  • Launch drupaloscopy.shscript providing domain url as first argument. Ex: ./drupaloscopy.sh http://drupal.org

How Drupaloscopy works ?

  • Drupaloscopy can determine version of Drupal sites comparing the hash of JS and CSS files.

My local drupaloscopy is not up to date with last drupal versions.

  • Launch ./update-hashs-base.sh. This will download and generate hashs for missing drupal versions. It's recommended to launch this script in crontab to update frequently hash database.
  • In Crontab: cd path/to/drupaloscopy; ./update-hashs-base.sh

I don't see Recommended version in results.

Scripts cannot find or execute drush. Add drush_script file at drupaloscopy's root and put in file path to your drush binary. Ex: /home/drupaloscopy/.drush/drush