benbalter / Domain-Inventory

WordPress plugin to track Federal .Govs by Agency, Status, Non-WWW Support, IPv6 Support, CDN, CMS, Cloud Provider, Analytics, JavaScript Libraries, and HTTPs support.
8 stars 2 forks source link

Watching metatags #4

Open mgifford opened 12 years ago

mgifford commented 12 years ago

Just did a quick script to look for for generator metatags. Though not a solid indication of much, I do think it's useful to also check these as there are some that aren't popular enough to have a proper sniffer written for them. Also, if a department has a custom built CMS that they use for a number of site's it's useful.

Anyways, this is a pretty simple script to run through & look at this from another way. This is just some of the results I got (Joomla & Drupal were already sniffed of course):

<?php

$file = fopen("domain_list.txt", "r");

$members = array(); while (!feof($file)) { $domain = 'http://' . str_replace("\n", '', fgets($file)); $tags[$domain] = get_meta_tags($domain); } fclose($file);

foreach($tags as $domain => $metatag) { if (is_array($metatag)) { foreach($metatag as $key => $value) { if($key == 'generator') { $cms[$value][] = $domain; } } } }

print_r($cms);

benbalter commented 12 years ago

This is great. If you could fork and submit as a pull request, I think that's the best next-step here.

mgifford commented 12 years ago

Yup. I'll definitely try to do that, but it's not going to happen for a while. Much of my efforts are going into things like:

http://openconcept.ca/blog/mgifford/drupal-8-accessibility-sprint-roundup

Many of which I hope WordPress and other free software CMS's are able to leverage to make their code more accessible & thus easier to adopt in government.