more wikis; new content spliter;

git-svn-id: https://wikiteam.googlecode.com/svn/trunk@152 31edc4fc-5e31-b4c4-d58b-c8bc928bcb95
pull/117/head
emijrp 13 years ago
parent 9a20327939
commit c7b511ee38

@ -38,12 +38,15 @@ def cleanHTML(raw=''):
#<!-- bodytext --> <!-- /bodytext -->
#<!-- start content --> <!-- end content -->
#<!-- Begin Content Area --> <!-- End Content Area -->
#<!-- content --> <!-- mw_content -->
if re.search('<!-- bodytext -->', raw):
raw = raw.split('<!-- bodytext -->')[1].split('<!-- /bodytext -->')[0]
elif re.search('<!-- start content -->', raw):
raw = raw.split('<!-- start content -->')[1].split('<!-- end content -->')[0]
elif re.search('<!-- Begin Content Area -->', raw):
raw = raw.split('<!-- Begin Content Area -->')[1].split('<!-- End Content Area -->')[0]
elif re.search('<!-- content -->', raw):
raw = raw.split('<!-- content -->')[1].split('<!-- mw_content -->')[0]
else:
print 'This wiki doesn\'t use marks to split contain'
sys.exit()

@ -62,3 +62,8 @@ http://wiki.lessig.org/api.php
http://www.forensicswiki.org/w/api.php
http://wikanda.malagapedia.es/w/api.php
https://wiki.archlinux.org/api.php
http://portlandwiki.org/api.php
http://www.adciv.org/index.php
http://www.publicdomainideas.org/api.php
http://ubuntuwiki.net/api.php
http://www.projectbrahma.org/api.php

Loading…
Cancel
Save