Wiki Ubuntu-it

Indice
Partecipa
FAQ
Wiki Blog
------------------
Ubuntu-it.org
Forum
Chiedi
Chat
Cerca
Planet
  • Immutable Page
  • Info
  • Attachments
  • attachment:mod_gpg.py of GruppoForum

Attachment 'mod_gpg.py'

Download

   1 #!/usr/bin/env python
   2 
   3 from os import system
   4 from re import findall
   5 from urllib import urlopen
   6 
   7 data = urlopen('https://launchpad.net/~ubuntu-it-forum/+members').read()
   8 members = findall('<a href="/~(.*)">', data)
   9 for member in members:
  10     data = urlopen('https://launchpad.net/~%s' % member).read()
  11     keyid = findall('<a href="http://keyserver.ubuntu.com:11371/pks/lookup\?search=(.*)&amp;op=index">', data)
  12     if len(keyid):
  13         system('gpg --keyserver keyserver.ubuntu.com --recv-key %s' % keyid[0])

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (16/10/2007 17.35.20, 0.5 KB) [[attachment:mod_gpg.py]]
  • [get | view] (16/10/2007 17.31.24, 0.5 KB) [[attachment:mod_gpg.py.txt]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.