Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
James Michael DuPont authored and James Michael DuPont committed Jul 8, 2012
1 parent 452625e commit d97a69e
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dumpgenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ def getSDTitles(site):
'Candidates_for_speedy_deletion_as_importance_or_significance_not_asserted',
'Candidates_for_speedy_deletion_for_unspecified_reason') :
cat = catlib.Category(site, x)
pages = cat.articlesList(False)
# pages = cat.articlesList(False)
pages = cat.articlesList(recurse = True)
# print pages
for x in pages :
# print x.urlname()
Expand Down
25 changes: 25 additions & 0 deletions pywikibot/throttle.ctrl
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
3 1341725931 wikipedia:en
4 1341726022 wikipedia:en
5 1341726079 wikipedia:en
6 1341725943 wikipedia:en
7 1341725883 wikipedia:en
8 1341726047 wikipedia:en
9 1341726110 wikipedia:en
10 1341726057 wikipedia:en
11 1341726080 wikipedia:en
12 1341725946 wikipedia:en
13 1341726081 wikipedia:en
14 1341725905 wikipedia:en
17 1341726106 wikipedia:en
18 1341725977 wikipedia:en
19 1341726041 wikipedia:en
22 1341725917 wikipedia:en
23 1341726122 wikipedia:en
24 1341726129.04 wikipedia:en
27 1341725964 wikipedia:en
28 1341726003 wikipedia:en
34 1341725918 wikipedia:en
35 1341726046 wikipedia:en
36 1341726086 wikipedia:en
70 1341726079 wikipedia:en
71 1341725998 wikipedia:en
6 changes: 5 additions & 1 deletion speedydeletion.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ def main(*args):
outpage = pywikibot.Page(site=outsite, title=entry.title, insite=outsite)
if outpage.exists():
pywikibot.output(u'there is an article %s' % entry.title)
file_store[title] = 1
try:
file_store[title] = 1
except KeyError :
pywikibot.output(u'key error saving article %s' % entry.title)

else:
pywikibot.output(u'is not there, adding %s' % entry.title)
contents = entry.text
Expand Down

0 comments on commit d97a69e

Please sign in to comment.