import pywikibot as pw
import re as re
site = pw.Site('fr', 'wikipedia')
regex = '\| superficie  = [0-9]+.[0-9]+'
count = 0

member = pw.Category(site, 'Catégorie:Genre_de_plantes_(nom_scientifique)').articles()
for page in member:
    page.text = page.text.replace('[[Catégorie:Genre de plantes (nom scientifique)]]','[[Catégorie:Genre d\'Angiospermes (nom scientifique)]]')
    page.save('Replacing "[[Catégorie:Genre de plantes (nom scientifique)]]" with "[[Catégorie:Genre d\'Angiospermes (nom scientifique)]]"') #saves the page
    count = count + 1
    print (count)
    
Page [[fr:Acanthocarpus]] saved
1
Sleeping for 9.3 seconds, 2018-06-05 23:26:23
Page [[fr:Acanthocereus]] saved
2
Sleeping for 9.2 seconds, 2018-06-05 23:26:33
Page [[fr:Acantholimon]] saved
3
Sleeping for 9.2 seconds, 2018-06-05 23:26:43
Page [[fr:Acanthonema]] saved
4
Sleeping for 9.2 seconds, 2018-06-05 23:26:53
Page [[fr:Acanthophoenix]] saved
5
Sleeping for 9.3 seconds, 2018-06-05 23:27:03
Page [[fr:Acanthostachys]] saved
6
Sleeping for 9.2 seconds, 2018-06-05 23:27:13
Page [[fr:Acanthosyris]] saved
Sleeping for 9.2 seconds, 2018-06-05 23:27:23
7
Page [[fr:Acanthus]] saved
8
Sleeping for 9.5 seconds, 2018-06-05 23:27:33
Page [[fr:Acca (plante)]] saved
Sleeping for 9.3 seconds, 2018-06-05 23:27:43
9
Page [[fr:Acer (genre)]] saved
Sleeping for 9.6 seconds, 2018-06-05 23:27:53
10
Page [[fr:Achillea]] saved
11
Sleeping for 9.5 seconds, 2018-06-05 23:28:03
Page [[fr:Achnopogon]] saved
12
Sleeping for 9.1 seconds, 2018-06-05 23:28:14
Page [[fr:Achyranthes]] saved
13
Sleeping for 9.2 seconds, 2018-06-05 23:28:24
Page [[fr:Acinos]] saved
14
Sleeping for 9.0 seconds, 2018-06-05 23:28:34
Page [[fr:Acis (genre)]] saved
15
Sleeping for 9.2 seconds, 2018-06-05 23:28:43
Page [[fr:Acleisanthes]] saved
16
Sleeping for 9.3 seconds, 2018-06-05 23:28:53
Page [[fr:Acmadenia]] saved
17
Sleeping for 9.3 seconds, 2018-06-05 23:29:03
Page [[fr:Acmella]] saved
18
Sleeping for 9.2 seconds, 2018-06-05 23:29:14
Page [[fr:Acmena]] saved
Sleeping for 9.3 seconds, 2018-06-05 23:29:23
19
Page [[fr:Acmenosperma]] saved
20
Sleeping for 9.4 seconds, 2018-06-05 23:29:33
Page [[fr:Acoelorraphe]] saved
21
Sleeping for 9.2 seconds, 2018-06-05 23:29:44
Page [[fr:Acokanthera]] saved
22
Sleeping for 9.2 seconds, 2018-06-05 23:29:54
Page [[fr:Aconitum]] saved
23
Sleeping for 9.0 seconds, 2018-06-05 23:30:04
Page [[fr:Acorus]] saved
24
Sleeping for 9.2 seconds, 2018-06-05 23:30:14
Page [[fr:Acradenia]] saved
25
Sleeping for 9.2 seconds, 2018-06-05 23:30:24
Page [[fr:Acridocarpus]] saved
26
Sleeping for 9.1 seconds, 2018-06-05 23:30:34
Page [[fr:Acriopsis]] saved
27
Sleeping for 9.1 seconds, 2018-06-05 23:30:44
Page [[fr:Acrocomia]] saved
28
Sleeping for 9.2 seconds, 2018-06-05 23:30:54
Page [[fr:Acrodon]] saved
29
Sleeping for 9.2 seconds, 2018-06-05 23:31:04
Page [[fr:Acroglochin]] saved
30
Sleeping for 9.1 seconds, 2018-06-05 23:31:14
Page [[fr:Acrolophia]] saved
31
Sleeping for 9.2 seconds, 2018-06-05 23:31:24
Page [[fr:Acronychia]] saved
32
Sleeping for 9.2 seconds, 2018-06-05 23:31:34
Page [[fr:Acroptilon]] saved
33
Sleeping for 9.2 seconds, 2018-06-05 23:31:44
Page [[fr:Acrosanthes]] saved
34
Sleeping for 9.3 seconds, 2018-06-05 23:31:54
Page [[fr:Acsmithia]] saved
35
Sleeping for 9.2 seconds, 2018-06-05 23:32:04
Page [[fr:Actaea]] saved
36
Sleeping for 9.1 seconds, 2018-06-05 23:32:14
Page [[fr:Actinidia]] saved
37
Sleeping for 9.1 seconds, 2018-06-05 23:32:24
Page [[fr:Actinodaphne]] saved
38
Sleeping for 9.1 seconds, 2018-06-05 23:32:34
Page [[fr:Ada (orchidée)]] saved
39
Sleeping for 9.2 seconds, 2018-06-05 23:32:44
Page [[fr:Adansonia]] saved
40
Sleeping for 9.2 seconds, 2018-06-05 23:32:54
Page [[fr:Adenandra]] saved
41
Sleeping for 9.2 seconds, 2018-06-05 23:33:04
Page [[fr:Adenocarpus]] saved
42
Sleeping for 9.2 seconds, 2018-06-05 23:33:14
Page [[fr:Adenoncos]] saved
43
Sleeping for 9.3 seconds, 2018-06-05 23:33:24
Page [[fr:Adenostyles]] saved
44
Sleeping for 9.2 seconds, 2018-06-05 23:33:34
Page [[fr:Adina]] saved
45
Sleeping for 9.2 seconds, 2018-06-05 23:33:44
Page [[fr:Adonidia]] saved
46
Sleeping for 9.3 seconds, 2018-06-05 23:33:54
Page [[fr:Adonis (genre)]] saved
47
Sleeping for 9.1 seconds, 2018-06-05 23:34:04
Page [[fr:Adoxa]] saved
48
Sleeping for 9.2 seconds, 2018-06-05 23:34:14
Page [[fr:Adriana]] saved
49
Sleeping for 9.1 seconds, 2018-06-05 23:34:24
Page [[fr:Aechmea]] saved
50
Sleeping for 9.1 seconds, 2018-06-05 23:34:34
Page [[fr:Aedesia]] saved
Sleeping for 9.2 seconds, 2018-06-05 23:34:44
51
Page [[fr:Aegilops]] saved
52
Sleeping for 9.5 seconds, 2018-06-05 23:34:54
Page [[fr:Aeginetia]] saved
53
Sleeping for 9.1 seconds, 2018-06-05 23:35:04
Page [[fr:Aegopodium]] saved
54
Sleeping for 9.2 seconds, 2018-06-05 23:35:14
Page [[fr:Aegopogon]] saved
55
Sleeping for 9.1 seconds, 2018-06-05 23:35:24
Page [[fr:Aeluropus]] saved
56
Sleeping for 9.1 seconds, 2018-06-05 23:35:34
Page [[fr:Aeonium]] saved
57
Sleeping for 9.2 seconds, 2018-06-05 23:35:44
Page [[fr:Aerangis]] saved
58
Sleeping for 9.2 seconds, 2018-06-05 23:35:54
Page [[fr:Aeranthes]] saved
59
Sleeping for 9.2 seconds, 2018-06-05 23:36:04
Page [[fr:Aerides]] saved
60
Sleeping for 9.2 seconds, 2018-06-05 23:36:14
Page [[fr:Aesculus]] saved
61
Sleeping for 9.0 seconds, 2018-06-05 23:36:24
Page [[fr:Aethephyllum]] saved
62
Sleeping for 9.2 seconds, 2018-06-05 23:36:34
Page [[fr:Aethionema]] saved
Sleeping for 9.1 seconds, 2018-06-05 23:36:44
63
Page [[fr:Aethusa]] saved
64
Sleeping for 9.2 seconds, 2018-06-05 23:36:54
Page [[fr:Aframomum]] saved
65
Sleeping for 9.1 seconds, 2018-06-05 23:37:04
Page [[fr:Afrofittonia]] saved
66
Sleeping for 9.2 seconds, 2018-06-05 23:37:14
Page [[fr:Afroguatteria]] saved
67
Sleeping for 9.2 seconds, 2018-06-05 23:37:24
Page [[fr:Afrostyrax]] saved
68
Sleeping for 9.2 seconds, 2018-06-05 23:37:34
Page [[fr:Afrothismia]] saved
69
Sleeping for 9.1 seconds, 2018-06-05 23:37:44
Page [[fr:Afzelia]] saved
70
Sleeping for 9.1 seconds, 2018-06-05 23:37:54
Page [[fr:Aganisia]] saved
71
Sleeping for 9.1 seconds, 2018-06-05 23:38:04
Page [[fr:Agastache]] saved
72
Sleeping for 8.8 seconds, 2018-06-05 23:38:14
Page [[fr:Agave]] saved
73
Sleeping for 8.4 seconds, 2018-06-05 23:38:25
Page [[fr:Agelaea]] saved
74
Sleeping for 9.1 seconds, 2018-06-05 23:38:34
Page [[fr:Aglaia]] saved
Sleeping for 9.2 seconds, 2018-06-05 23:38:44
75
Page [[fr:Aglaonema]] saved
76
Sleeping for 9.3 seconds, 2018-06-05 23:38:54
Page [[fr:Agonis]] saved
77
Sleeping for 9.2 seconds, 2018-06-05 23:39:04
Page [[fr:Agrimonia]] saved
78
Sleeping for 9.1 seconds, 2018-06-05 23:39:14
Page [[fr:Agropyron]] saved
79
Sleeping for 9.0 seconds, 2018-06-05 23:39:24
Page [[fr:Agrostemma]] saved
80
Sleeping for 9.0 seconds, 2018-06-05 23:39:34
Page [[fr:Agrostis]] saved
81
Sleeping for 9.0 seconds, 2018-06-05 23:39:44
Page [[fr:Aichryson]] saved
82
Sleeping for 9.2 seconds, 2018-06-05 23:39:54
Page [[fr:Aidia]] saved
83
Sleeping for 9.2 seconds, 2018-06-05 23:40:04
Page [[fr:Aiphanes]] saved
84
Sleeping for 9.2 seconds, 2018-06-05 23:40:14
Page [[fr:Aira]] saved
Sleeping for 9.3 seconds, 2018-06-05 23:40:24
85
Page [[fr:Aizoanthemum]] saved
86
Sleeping for 9.3 seconds, 2018-06-05 23:40:34
Page [[fr:Aizoon]] saved
Sleeping for 9.3 seconds, 2018-06-05 23:40:44
87
Page [[fr:Ajuga]] saved
88
Sleeping for 9.5 seconds, 2018-06-05 23:40:54
Page [[fr:Akebia]] saved
89
Sleeping for 9.1 seconds, 2018-06-05 23:41:04
Page [[fr:Alafia (botanique)]] saved
90
Sleeping for 9.1 seconds, 2018-06-05 23:41:14
Page [[fr:Albertisia]] saved
91
Sleeping for 9.1 seconds, 2018-06-05 23:41:24
Page [[fr:Alcantarea]] saved
92
Sleeping for 9.1 seconds, 2018-06-05 23:41:34
Page [[fr:Alcea]] saved
Sleeping for 9.1 seconds, 2018-06-05 23:41:44
93
Page [[fr:Alchemilla]] saved
94
Sleeping for 9.4 seconds, 2018-06-05 23:41:54