Ninovolador added a comment.
I did some test using this script
import pywikibot
from pywikibot import proofreadpage
from pywikibot import pagegenerators
import time
site=pywikibot.Site('es', fam="wikisource")
def treat_page(page):
page.body = page.body + ""
pass
time1 = time.time()
index = "Cautiverio feliz, y razón de las guerras dilatadas de Chile.pdf"
INDEX = proofreadpage.IndexPage(site, title="Index:"+index)
gen = INDEX.page_gen(end=100, content=False)
for page in gen:
treat_page(page)
time1 = time.time() - time1
print('content=False: ', time1)
I got these two results (changing the boolean accordingly):
**For content=True**
content=True: 3.071580171585083
**For content=False**
(first try with a ConnectionError exception) content=False: 48.33420515060425
content=False: 53.96983456611633
TASK DETAIL
https://phabricator.wikimedia.org/T358635
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Ninovolador
Cc: Mpaa, Xqt, Aklapper, pywikibot-bugs-list, Ninovolador, mevo,
Isabelladantes1983, Themindcoder, Adamm71, Jersione, Hellket777, LisafBia6531,
786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra,
Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301,
joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420,
Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa,
Altostratus, Neuronton, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]