Created
July 11, 2014 13:26
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You, sir, just made my day.