3
# creates database based on info from the ndiswrapper wiki
10
returns a list containing all the urls to lists on the ndiswrapper wiki
12
front = urllib2.urlopen('http://ndiswrapper.sourceforge.net/joomla/index.php?/component/option,com_openwiki/Itemid,33/id,list/')
14
front = front.split('<li class="level1"><div class="li"> <a href="')
18
lists.append(i.split('" class="wikilink1"')[0])
25
returns a dictionary containing the databse
28
for url in get_lists():
29
site = urllib2.urlopen(url)
31
site = site.split('<li class="level1"><div class="li"> ')
39
pciid = j.split('pciid: ')[-1].strip()[:9]
41
d['name'] = j.split('Card: ')[-1]
43
d['chipset'] = j.split('Chipset: ')[-1]
45
d['other'] = j.split('Other: ')[-1]
47
d['driver'] = j.split('<a href="')[-1].split('" class="urlextern"')[0]
56
if __name__ == '__main__':