#2019-07-29 18:01
import pywikibot
from pywikibot import pagegenerators as pg

site=pywikibot.Site('nl','wikipedia')
targetpage='user:Edoderoo/last-xxx-no-wikidata'
maxpages=103
header='{| class="wikitable sortable"\n|-\n! Artikel !! Laatste bewerking !! Categorie !! TBP\n'
wikitxt=''
footer='|}'

def getnewpages():
  count=0  
  for page in pg.NewpagesPageGenerator(site):
    if (count>=maxpages):
       break
    if (not('wikibase_item' in page.properties())):
     if (page.exists()):   
      count=count+1
      yield (page)
    
wikitxt=header    
for page in getnewpages():
    #print(page.title())
    TBPtxt=''
    if (page.text.lower().find('{{ne')>-1):
      TBPtxt='ne'  
    if (page.text.lower().find('{{wiu')>-1):
      TBPtxt='wiu'  
    if (page.text.lower().find('{{weg')>-1):
      TBPtxt='weg'  
    if (page.text.lower().find('{{reclame')>-1):
      TBPtxt='reclame'  
    if (page.text.lower().find('{{auteur')>-1):
      TBPtxt='auteur'  
    if (page.text.lower().find('[[categorie:')>0):
      cattxt='√'
    else:
      cattxt=''                                   
    wikitxt+=f'|-\n|[[{page.title()}]] || {page.latest_revision.timestamp}||{cattxt} || {TBPtxt}\n'
wikitxt+=footer    
print(wikitxt)
pywikibot.Page(site,targetpage).put(wikitxt,f'summary={maxpages} last newest pages still missing wikidata')
{| class="wikitable sortable"
|-
! Artikel !! Laatste bewerking !! Categorie !! TBP
|-
|[[Fortune Harbour (schiereiland)]] || 2019-08-15T20:21:11Z||√ || 
|-
|[[Spanje op de Olympische Zomerspelen 2020]] || 2019-08-15T20:14:57Z||√ || 
|-
|[[Groente en Fruitrace]] || 2019-08-15T20:53:56Z||√ || ne
|-
|[[Helen Deutsch]] || 2019-08-15T19:15:54Z||√ || 
|-
|[[Only a Northern Song]] || 2019-08-15T19:08:41Z||√ || 
|-
|[[Gerlach de Culpen]] || 2019-08-15T19:07:27Z||√ || 
|-
|[[Enzo Friso]] || 2019-08-15T19:08:39Z||√ || 
|-
|[[Kaoh Tang]] || 2019-08-15T20:27:13Z|| || wiu
|-
|[[Agder]] || 2019-08-15T18:42:55Z||√ || 
|-
|[[Gevaar op Groenland]] || 2019-08-15T18:07:10Z||√ || 
|-
|[[Ciudad de la Paz]] || 2019-08-15T18:05:34Z||√ || 
|-
|[[Otto Kersten]] || 2019-08-15T17:57:07Z||√ || 
|-
|[[Cavanagh]] || 2019-08-15T17:33:07Z|| || 
|-
|[[Lijst van vliegvelden in Guinee]] || 2019-08-15T18:07:00Z|| || 
|-
|[[Nederlands Korfballer en Korfbalster van het Jaar]] || 2019-08-15T20:52:07Z||√ || 
|-
|[[Märchengarten im Blühenden Barock]] || 2019-08-15T17:30:22Z||√ || 
|-
|[[John Vanderveken]] || 2019-08-15T18:48:07Z||√ || 
|-
|[[Rosemarie Roozenbeek]] || 2019-08-15T16:43:38Z||√ || 
|-
|[[Bregtje van Drongelen]] || 2019-08-15T16:32:19Z||√ || 
|-
|[[Esther Cordus]] || 2019-08-15T20:00:08Z||√ || 
|-
|[[Marjolijn Schenk]] || 2019-08-15T16:22:20Z||√ || 
|-
|[[Gabriël de la Coste]] || 2019-08-15T16:13:05Z||√ || 
|-
|[[Roel van Gurp]] || 2019-08-15T16:11:51Z||√ || 
|-
|[[Hans Everaert]] || 2019-08-15T19:48:33Z||√ || 
|-
|[[Arsenal FC in het seizoen 2019/20]] || 2019-08-15T14:10:58Z||√ || 
|-
|[[Cabanillas de la Sierra]] || 2019-08-15T13:58:52Z||√ || 
|-
|[[45e Grammy Awards]] || 2019-08-15T18:34:57Z||√ || 
|-
|[[Brea de Tajo]] || 2019-08-15T13:45:24Z||√ || 
|-
|[[Gabriel Martinelli]] || 2019-08-15T13:56:05Z||√ || 
|-
|[[Gery De Smet]] || 2019-08-15T17:27:28Z|| || 
|-
|[[Proxy (The Tangent)]] || 2019-08-15T13:30:19Z||√ || 
|-
|[[El Berrueco]] || 2019-08-15T13:28:30Z||√ || 
|-
|[[Storm Area 51, They Can't Stop All of Us]] || 2019-08-15T12:01:15Z|| || 
|-
|[[Willem Pieter Hendrik Jansen]] || 2019-08-15T12:48:28Z||√ || 
|-
|[[The Clinch Mountain Backstep]] || 2019-08-15T19:18:57Z||√ || wiu
|-
|[[Anchuelo]] || 2019-08-15T11:12:17Z||√ || 
|-
|[[Ambite]] || 2019-08-15T11:10:17Z||√ || 
|-
|[[Andries de la Coste]] || 2019-08-15T14:09:58Z||√ || 
|-
|[[Cyb3rpvnk]] || 2019-08-15T10:50:27Z||√ || reclame
|-
|[[Tinguely]] || 2019-08-15T09:56:02Z|| || 
|-
|[[Inferum]] || 2019-08-15T18:20:09Z||√ || 
|-
|[[Lijst van trainers van FC Erzgebirge Aue]] || 2019-08-15T10:14:05Z|| || 
|-
|[[Kunstenplatform WARP]] || 2019-08-15T09:02:44Z||√ || 
|-
|[[Integrale beplanting]] || 2019-08-15T10:52:34Z|| || wiu
|-
|[[Dasytes aeratus]] || 2019-08-15T07:25:18Z||√ || 
|-
|[[Verzorgingsplaats Frontera]] || 2019-08-15T09:46:47Z||√ || 
|-
|[[Polen op de Olympische Zomerspelen 2020]] || 2019-08-15T20:17:01Z||√ || 
|-
|[[First International Pop Event]] || 2019-08-14T21:57:25Z||√ || 
|-
|[[Port Albert]] || 2019-08-14T21:21:33Z|| || 
|-
|[[Wie is Guy?]] || 2019-08-15T11:56:26Z||√ || 
|-
|[[Sint-Jozefskerk (Jonkershove)]] || 2019-08-15T05:34:18Z||√ || 
|-
|[[Kees de Boer (voetballer)]] || 2019-08-14T21:09:17Z||√ || 
|-
|[[João Gomes Júnior]] || 2019-08-14T20:35:05Z||√ || 
|-
|[[Villavieja del Lozoya]] || 2019-08-14T20:33:29Z||√ || 
|-
|[[World Food Center]] || 2019-08-15T16:31:31Z||√ || ne
|-
|[[Celebration Day]] || 2019-08-14T20:12:54Z||√ || 
|-
|[[Angonyx krishna]] || 2019-08-14T20:06:58Z||√ || 
|-
|[[Angonyx chelsea]] || 2019-08-14T19:44:25Z||√ || 
|-
|[[Angonyx williami]] || 2019-08-14T19:44:20Z||√ || 
|-
|[[Karel Mechiels]] || 2019-08-14T20:51:36Z||√ || 
|-
|[[Big Walter Horton]] || 2019-08-14T20:03:45Z||√ || 
|-
|[[De S.P.E.L.show]] || 2019-08-14T20:08:52Z||√ || 
|-
|[[Hermann Wesselink]] || 2019-08-14T19:41:16Z|| || weg
|-
|[[Eduarda Santos Lisboa]] || 2019-08-14T15:51:21Z||√ || 
|-
|[[Muurschildering Reigersbos]] || 2019-08-15T12:50:24Z||√ || 
|-
|[[Peinafobie]] || 2019-08-14T18:56:02Z||√ || 
|-
|[[Mary Faber]] || 2019-08-15T10:04:03Z||√ || 
|-
|[[Lijst van Belgische voetbalbondscoaches in het buitenland]] || 2019-08-14T15:09:34Z||√ || 
|-
|[[Spaanse Synagoge]] || 2019-08-14T14:56:53Z|| || 
|-
|[[Glenn Vanryckeghem]] || 2019-08-15T14:19:46Z|| || 
|-
|[[Bart Jansen (zanger)]] || 2019-08-14T15:04:02Z||√ || 
|-
|[[Matchless Model 35/D80]] || 2019-08-14T13:46:15Z||√ || 
|-
|[[Mauri Vansevenant]] || 2019-08-14T13:41:07Z||√ || 
|-
|[[Nayib Bukele Ortez]] || 2019-08-14T14:18:43Z|| || 
|-
|[[Aran Bade]] || 2019-08-14T14:02:51Z|| || 
|-
|[[Olga Gomelskaja]] || 2019-08-14T12:07:59Z||√ || 
|-
|[[Brouwerij Biertoren]] || 2019-08-14T18:36:03Z||√ || 
|-
|[[Van Hee]] || 2019-08-14T11:10:36Z||√ || 
|-
|[[Björn de Vries]] || 2019-08-14T11:41:26Z|| || 
|-
|[[Anna (Go to Him)]] || 2019-08-14T10:55:37Z||√ || 
|-
|[[Georg Tengwall]] || 2019-08-14T10:39:58Z||√ || 
|-
|[[South Platte]] || 2019-08-14T10:28:19Z||√ || 
|-
|[[Axel Rydin]] || 2019-08-14T10:14:33Z||√ || 
|-
|[[Yngve Holm]] || 2019-08-14T10:09:49Z||√ || 
|-
|[[Ole Beich]] || 2019-08-14T10:22:46Z|| || 
|-
|[[Station Bornholmer Straße]] || 2019-08-14T08:25:39Z||√ || 
|-
|[[Geir André Herrem]] || 2019-08-14T08:24:34Z||√ || 
|-
|[[Mark Heese]] || 2019-08-14T08:18:28Z||√ || 
|-
|[[Contraniem]] || 2019-08-15T20:00:22Z||√ || 
|-
|[[Grand Prix Formule 1 van Singapore 2019]] || 2019-08-14T07:48:01Z||√ || 
|-
|[[Cordylepherus viridis]] || 2019-08-14T06:00:22Z||√ || 
|-
|[[Erik Neimeijer]] || 2019-08-15T08:28:25Z||√ || 
|-
|[[Lijst van Carnatische raga's]] || 2019-08-15T04:39:04Z|| || 
|-
|[[Nigel Otermans]] || 2019-08-14T05:37:29Z|| || 
|-
|[[Ryan Lambert]] || 2019-08-13T22:16:46Z||√ || 
|-
|[[João Felício]] || 2019-08-15T16:18:10Z||√ || 
|-
|[['T Kiejske]] || 2019-08-13T21:48:56Z|| || wiu
|-
|[[Jacqueline Karstens]] || 2019-08-13T22:29:24Z|| || wiu
|-
|[[The Groomsmen]] || 2019-08-14T04:22:51Z||√ || 
|-
|[[Luphomoid]] || 2019-08-14T20:50:59Z|| || ne
|-
|[[Esmeralda 'Smorrie' Bakboord]] || 2019-08-13T19:11:16Z|| || wiu
|-
|[[Lijst van anolissen]] || 2019-08-13T18:00:34Z||√ || 
|-
|[[Teun Metz]] || 2019-08-13T18:29:40Z|| || wiu
|}
Page [[nl:Gebruiker:Edoderoo/last-xxx-no-wikidata]] saved