Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save netsensei/2b6032ddb3720a9e1d14 to your computer and use it in GitHub Desktop.
Save netsensei/2b6032ddb3720a9e1d14 to your computer and use it in GitHub Desktop.
Need to draw a list of active Drupal modules on your site? Why not automate the process by just scraping from the admin/modules page? This artoo.js (http://medialab.github.io/artoo/) script does just that.
artoo.scrape('form#system-modules table tr:has(td input[type=checkbox]:checked)', {
title: {sel: 'td:nth-child(2) label'},
version: {sel: 'td:nth-child(3)'},
description: {sel: 'td:nth-child(4)'}
}, artoo.saveCsv);
@Yomguithereal
Copy link

You, sir, just made my day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment