list = """
<a href="enwiki-latest-pages-articles1.xml-p10p30302.bz2-rss.xml">enwiki-latest-pages-articles1.xml-p10p30302.bz2..&gt;</a> 26-Oct-2018 04:09                 814
<a href="enwiki-latest-pages-articles10.xml-p2336425p3046511.bz2">enwiki-latest-pages-articles10.xml-p2336425p304..&gt;</a> 24-Oct-2018 14:15           364560921
<a href="enwiki-latest-pages-articles10.xml-p2336425p3046511.bz2-rss.xml">enwiki-latest-pages-articles10.xml-p2336425p304..&gt;</a> 26-Oct-2018 04:14                 838
<a href="enwiki-latest-pages-articles11.xml-p3046517p3926861.bz2">enwiki-latest-pages-articles11.xml-p3046517p392..&gt;</a> 24-Oct-2018 14:16           385430293
<a href="enwiki-latest-pages-articles11.xml-p3046517p3926861.bz2-rss.xml">enwiki-latest-pages-articles11.xml-p3046517p392..&gt;</a> 26-Oct-2018 04:14                 838
<a href="enwiki-latest-pages-articles12.xml-p3926864p5040435.bz2">enwiki-latest-pages-articles12.xml-p3926864p504..&gt;</a> 24-Oct-2018 14:17           398236302
<a href="enwiki-latest-pages-articles12.xml-p3926864p5040435.bz2-rss.xml">enwiki-latest-pages-articles12.xml-p3926864p504..&gt;</a> 26-Oct-2018 04:15                 838
<a href="enwiki-latest-pages-articles13.xml-p5040438p6197593.bz2">enwiki-latest-pages-articles13.xml-p5040438p619..&gt;</a> 24-Oct-2018 14:16           392421512
<a href="enwiki-latest-pages-articles13.xml-p5040438p6197593.bz2-rss.xml">enwiki-latest-pages-articles13.xml-p5040438p619..&gt;</a> 26-Oct-2018 04:15                 838
<a href="enwiki-latest-pages-articles14.xml-p6197599p7697599.bz2">enwiki-latest-pages-articles14.xml-p6197599p769..&gt;</a> 24-Oct-2018 14:17           398494618
<a href="enwiki-latest-pages-articles14.xml-p6197599p7697599.bz2-rss.xml">enwiki-latest-pages-articles14.xml-p6197599p769..&gt;</a> 26-Oct-2018 04:16                 838
<a href="enwiki-latest-pages-articles14.xml-p7697599p7744799.bz2">enwiki-latest-pages-articles14.xml-p7697599p774..&gt;</a> 24-Oct-2018 14:06            11779173
<a href="enwiki-latest-pages-articles14.xml-p7697599p7744799.bz2-rss.xml">enwiki-latest-pages-articles14.xml-p7697599p774..&gt;</a> 26-Oct-2018 04:16                 838
<a href="enwiki-latest-pages-articles15.xml-p7744803p9244803.bz2">enwiki-latest-pages-articles15.xml-p7744803p924..&gt;</a> 24-Oct-2018 14:16           375573416
<a href="enwiki-latest-pages-articles15.xml-p7744803p9244803.bz2-rss.xml">enwiki-latest-pages-articles15.xml-p7744803p924..&gt;</a> 26-Oct-2018 04:17                 838
<a href="enwiki-latest-pages-articles15.xml-p9244803p9518046.bz2">enwiki-latest-pages-articles15.xml-p9244803p951..&gt;</a> 24-Oct-2018 14:08            62261978
<a href="enwiki-latest-pages-articles15.xml-p9244803p9518046.bz2-rss.xml">enwiki-latest-pages-articles15.xml-p9244803p951..&gt;</a> 26-Oct-2018 04:17                 838
<a href="enwiki-latest-pages-articles16.xml-p11018059p11539266.bz2">enwiki-latest-pages-articles16.xml-p11018059p11..&gt;</a> 24-Oct-2018 14:09           119275493
<a href="enwiki-latest-pages-articles16.xml-p11018059p11539266.bz2-rss.xml">enwiki-latest-pages-articles16.xml-p11018059p11..&gt;</a> 26-Oct-2018 04:18                 844
<a href="enwiki-latest-pages-articles16.xml-p9518059p11018059.bz2">enwiki-latest-pages-articles16.xml-p9518059p110..&gt;</a> 24-Oct-2018 14:14           310912488
<a href="enwiki-latest-pages-articles16.xml-p9518059p11018059.bz2-rss.xml">enwiki-latest-pages-articles16.xml-p9518059p110..&gt;</a> 26-Oct-2018 04:18                 841
<a href="enwiki-latest-pages-articles17.xml-p11539268p13039268.bz2">enwiki-latest-pages-articles17.xml-p11539268p13..&gt;</a> 24-Oct-2018 14:17           370615294
<a href="enwiki-latest-pages-articles17.xml-p11539268p13039268.bz2-rss.xml">enwiki-latest-pages-articles17.xml-p11539268p13..&gt;</a> 26-Oct-2018 04:19                 844
<a href="enwiki-latest-pages-articles17.xml-p13039268p13693066.bz2">enwiki-latest-pages-articles17.xml-p13039268p13..&gt;</a> 24-Oct-2018 14:11           153333630
<a href="enwiki-latest-pages-articles17.xml-p13039268p13693066.bz2-rss.xml">enwiki-latest-pages-articles17.xml-p13039268p13..&gt;</a> 26-Oct-2018 04:19                 844
<a href="enwiki-latest-pages-articles18.xml-p13693075p15193075.bz2">enwiki-latest-pages-articles18.xml-p13693075p15..&gt;</a> 24-Oct-2018 14:16           352964571
<a href="enwiki-latest-pages-articles18.xml-p13693075p15193075.bz2-rss.xml">enwiki-latest-pages-articles18.xml-p13693075p15..&gt;</a> 26-Oct-2018 04:20                 844
<a href="enwiki-latest-pages-articles18.xml-p15193075p16120541.bz2">enwiki-latest-pages-articles18.xml-p15193075p16..&gt;</a> 24-Oct-2018 14:13           195816492
<a href="enwiki-latest-pages-articles18.xml-p15193075p16120541.bz2-rss.xml">enwiki-latest-pages-articles18.xml-p15193075p16..&gt;</a> 26-Oct-2018 04:21                 844
<a href="enwiki-latest-pages-articles19.xml-p16120548p17620548.bz2">enwiki-latest-pages-articles19.xml-p16120548p17..&gt;</a> 24-Oct-2018 14:16           293344456
<a href="enwiki-latest-pages-articles19.xml-p16120548p17620548.bz2-rss.xml">enwiki-latest-pages-articles19.xml-p16120548p17..&gt;</a> 26-Oct-2018 04:21                 844
<a href="enwiki-latest-pages-articles19.xml-p17620548p18754723.bz2">enwiki-latest-pages-articles19.xml-p17620548p18..&gt;</a> 24-Oct-2018 14:14           244346361
<a href="enwiki-latest-pages-articles19.xml-p17620548p18754723.bz2-rss.xml">enwiki-latest-pages-articles19.xml-p17620548p18..&gt;</a> 26-Oct-2018 04:22                 844
<a href="enwiki-latest-pages-articles2.xml-p30304p88444.bz2">enwiki-latest-pages-articles2.xml-p30304p88444.bz2</a> 24-Oct-2018 14:09           206432483
<a href="enwiki-latest-pages-articles2.xml-p30304p88444.bz2-rss.xml">enwiki-latest-pages-articles2.xml-p30304p88444...&gt;</a> 26-Oct-2018 04:09                 823
<a href="enwiki-latest-pages-articles20.xml-p18754736p20254736.bz2">enwiki-latest-pages-articles20.xml-p18754736p20..&gt;</a> 24-Oct-2018 14:15           319675186
<a href="enwiki-latest-pages-articles20.xml-p18754736p20254736.bz2-rss.xml">enwiki-latest-pages-articles20.xml-p18754736p20..&gt;</a> 26-Oct-2018 04:22                 844
<a href="enwiki-latest-pages-articles20.xml-p20254736p21222156.bz2">enwiki-latest-pages-articles20.xml-p20254736p21..&gt;</a> 24-Oct-2018 14:13           206495159
<a href="enwiki-latest-pages-articles20.xml-p20254736p21222156.bz2-rss.xml">enwiki-latest-pages-articles20.xml-p20254736p21..&gt;</a> 26-Oct-2018 04:23                 844
<a href="enwiki-latest-pages-articles21.xml-p21222161p22722161.bz2">enwiki-latest-pages-articles21.xml-p21222161p22..&gt;</a> 24-Oct-2018 14:29           333484045
<a href="enwiki-latest-pages-articles21.xml-p21222161p22722161.bz2-rss.xml">enwiki-latest-pages-articles21.xml-p21222161p22..&gt;</a> 26-Oct-2018 04:23                 844
<a href="enwiki-latest-pages-articles21.xml-p22722161p23927980.bz2">enwiki-latest-pages-articles21.xml-p22722161p23..&gt;</a> 24-Oct-2018 14:30           294705183
<a href="enwiki-latest-pages-articles21.xml-p22722161p23927980.bz2-rss.xml">enwiki-latest-pages-articles21.xml-p22722161p23..&gt;</a> 26-Oct-2018 04:24                 844
<a href="enwiki-latest-pages-articles22.xml-p23927984p25427984.bz2">enwiki-latest-pages-articles22.xml-p23927984p25..&gt;</a> 24-Oct-2018 14:29           356640335
<a href="enwiki-latest-pages-articles22.xml-p23927984p25427984.bz2-rss.xml">enwiki-latest-pages-articles22.xml-p23927984p25..&gt;</a> 26-Oct-2018 04:24                 844
<a href="enwiki-latest-pages-articles22.xml-p25427984p26823658.bz2">enwiki-latest-pages-articles22.xml-p25427984p26..&gt;</a> 24-Oct-2018 14:30           309141343
<a href="enwiki-latest-pages-articles22.xml-p25427984p26823658.bz2-rss.xml">enwiki-latest-pages-articles22.xml-p25427984p26..&gt;</a> 26-Oct-2018 04:25                 844
<a href="enwiki-latest-pages-articles23.xml-p26823661p28323661.bz2">enwiki-latest-pages-articles23.xml-p26823661p28..&gt;</a> 24-Oct-2018 14:29           334382128
<a href="enwiki-latest-pages-articles23.xml-p26823661p28323661.bz2-rss.xml">enwiki-latest-pages-articles23.xml-p26823661p28..&gt;</a> 26-Oct-2018 04:25                 844
<a href="enwiki-latest-pages-articles23.xml-p28323661p29823661.bz2">enwiki-latest-pages-articles23.xml-p28323661p29..&gt;</a> 24-Oct-2018 14:31           288198231
<a href="enwiki-latest-pages-articles23.xml-p28323661p29823661.bz2-rss.xml">enwiki-latest-pages-articles23.xml-p28323661p29..&gt;</a> 26-Oct-2018 04:26                 844
<a href="enwiki-latest-pages-articles23.xml-p29823661p30503448.bz2">enwiki-latest-pages-articles23.xml-p29823661p30..&gt;</a> 24-Oct-2018 14:25           129862256
<a href="enwiki-latest-pages-articles23.xml-p29823661p30503448.bz2-rss.xml">enwiki-latest-pages-articles23.xml-p29823661p30..&gt;</a> 26-Oct-2018 04:26                 844
<a href="enwiki-latest-pages-articles24.xml-p30503454p32003454.bz2">enwiki-latest-pages-articles24.xml-p30503454p32..&gt;</a> 24-Oct-2018 14:30           371009881
<a href="enwiki-latest-pages-articles24.xml-p30503454p32003454.bz2-rss.xml">enwiki-latest-pages-articles24.xml-p30503454p32..&gt;</a> 26-Oct-2018 04:27                 844
<a href="enwiki-latest-pages-articles24.xml-p32003454p33503454.bz2">enwiki-latest-pages-articles24.xml-p32003454p33..&gt;</a> 24-Oct-2018 14:32           352145882
<a href="enwiki-latest-pages-articles24.xml-p32003454p33503454.bz2-rss.xml">enwiki-latest-pages-articles24.xml-p32003454p33..&gt;</a> 26-Oct-2018 04:27                 844
<a href="enwiki-latest-pages-articles24.xml-p33503454p33952815.bz2">enwiki-latest-pages-articles24.xml-p33503454p33..&gt;</a> 24-Oct-2018 14:24            98817115
<a href="enwiki-latest-pages-articles24.xml-p33503454p33952815.bz2-rss.xml">enwiki-latest-pages-articles24.xml-p33503454p33..&gt;</a> 26-Oct-2018 04:28                 844
<a href="enwiki-latest-pages-articles25.xml-p33952817p35452817.bz2">enwiki-latest-pages-articles25.xml-p33952817p35..&gt;</a> 24-Oct-2018 14:29           314834167
<a href="enwiki-latest-pages-articles25.xml-p33952817p35452817.bz2-rss.xml">enwiki-latest-pages-articles25.xml-p33952817p35..&gt;</a> 26-Oct-2018 04:29                 844
<a href="enwiki-latest-pages-articles25.xml-p35452817p36952817.bz2">enwiki-latest-pages-articles25.xml-p35452817p36..&gt;</a> 24-Oct-2018 14:32           336411382
<a href="enwiki-latest-pages-articles25.xml-p35452817p36952817.bz2-rss.xml">enwiki-latest-pages-articles25.xml-p35452817p36..&gt;</a> 26-Oct-2018 04:29                 844
<a href="enwiki-latest-pages-articles25.xml-p36952817p38067198.bz2">enwiki-latest-pages-articles25.xml-p36952817p38..&gt;</a> 24-Oct-2018 14:28           238149174
<a href="enwiki-latest-pages-articles25.xml-p36952817p38067198.bz2-rss.xml">enwiki-latest-pages-articles25.xml-p36952817p38..&gt;</a> 26-Oct-2018 04:30                 844
<a href="enwiki-latest-pages-articles26.xml-p38067204p39567204.bz2">enwiki-latest-pages-articles26.xml-p38067204p39..&gt;</a> 24-Oct-2018 14:30           339055593
<a href="enwiki-latest-pages-articles26.xml-p38067204p39567204.bz2-rss.xml">enwiki-latest-pages-articles26.xml-p38067204p39..&gt;</a> 26-Oct-2018 04:30                 844
<a href="enwiki-latest-pages-articles26.xml-p39567204p41067204.bz2">enwiki-latest-pages-articles26.xml-p39567204p41..&gt;</a> 24-Oct-2018 14:32           333807644
<a href="enwiki-latest-pages-articles26.xml-p39567204p41067204.bz2-rss.xml">enwiki-latest-pages-articles26.xml-p39567204p41..&gt;</a> 26-Oct-2018 04:31                 844
<a href="enwiki-latest-pages-articles26.xml-p41067204p42567204.bz2">enwiki-latest-pages-articles26.xml-p41067204p42..&gt;</a> 24-Oct-2018 14:32           338002928
<a href="enwiki-latest-pages-articles26.xml-p41067204p42567204.bz2-rss.xml">enwiki-latest-pages-articles26.xml-p41067204p42..&gt;</a> 26-Oct-2018 04:31                 844
<a href="enwiki-latest-pages-articles26.xml-p42567204p42663461.bz2">enwiki-latest-pages-articles26.xml-p42567204p42..&gt;</a> 24-Oct-2018 14:20            21354840
<a href="enwiki-latest-pages-articles26.xml-p42567204p42663461.bz2-rss.xml">enwiki-latest-pages-articles26.xml-p42567204p42..&gt;</a> 26-Oct-2018 04:32                 844
<a href="enwiki-latest-pages-articles27.xml-p42663464p44163464.bz2">enwiki-latest-pages-articles27.xml-p42663464p44..&gt;</a> 24-Oct-2018 14:30           340728233
<a href="enwiki-latest-pages-articles27.xml-p42663464p44163464.bz2-rss.xml">enwiki-latest-pages-articles27.xml-p42663464p44..&gt;</a> 26-Oct-2018 04:32                 844
<a href="enwiki-latest-pages-articles27.xml-p44163464p45663464.bz2">enwiki-latest-pages-articles27.xml-p44163464p45..&gt;</a> 24-Oct-2018 14:30           300962524
<a href="enwiki-latest-pages-articles27.xml-p44163464p45663464.bz2-rss.xml">enwiki-latest-pages-articles27.xml-p44163464p45..&gt;</a> 26-Oct-2018 04:33                 844
<a href="enwiki-latest-pages-articles27.xml-p45663464p47163464.bz2">enwiki-latest-pages-articles27.xml-p45663464p47..&gt;</a> 24-Oct-2018 14:29           241667551
<a href="enwiki-latest-pages-articles27.xml-p45663464p47163464.bz2-rss.xml">enwiki-latest-pages-articles27.xml-p45663464p47..&gt;</a> 26-Oct-2018 04:33                 844
<a href="enwiki-latest-pages-articles27.xml-p47163464p48663464.bz2">enwiki-latest-pages-articles27.xml-p47163464p48..&gt;</a> 24-Oct-2018 14:31           301316727
<a href="enwiki-latest-pages-articles27.xml-p47163464p48663464.bz2-rss.xml">enwiki-latest-pages-articles27.xml-p47163464p48..&gt;</a> 26-Oct-2018 04:34                 844
<a href="enwiki-latest-pages-articles27.xml-p48663464p50163464.bz2">enwiki-latest-pages-articles27.xml-p48663464p50..&gt;</a> 24-Oct-2018 14:31           284537456
<a href="enwiki-latest-pages-articles27.xml-p48663464p50163464.bz2-rss.xml">enwiki-latest-pages-articles27.xml-p48663464p50..&gt;</a> 26-Oct-2018 04:34                 844
<a href="enwiki-latest-pages-articles27.xml-p50163464p51663464.bz2">enwiki-latest-pages-articles27.xml-p50163464p51..&gt;</a> 24-Oct-2018 14:32           309588848
<a href="enwiki-latest-pages-articles27.xml-p50163464p51663464.bz2-rss.xml">enwiki-latest-pages-articles27.xml-p50163464p51..&gt;</a> 26-Oct-2018 04:35                 844
<a href="enwiki-latest-pages-articles27.xml-p51663464p53163464.bz2">enwiki-latest-pages-articles27.xml-p51663464p53..&gt;</a> 24-Oct-2018 14:31           289849980
<a href="enwiki-latest-pages-articles27.xml-p51663464p53163464.bz2-rss.xml">enwiki-latest-pages-articles27.xml-p51663464p53..&gt;</a> 26-Oct-2018 04:35                 844
<a href="enwiki-latest-pages-articles27.xml-p53163464p54663464.bz2">enwiki-latest-pages-articles27.xml-p53163464p54..&gt;</a> 24-Oct-2018 14:32           310908556
<a href="enwiki-latest-pages-articles27.xml-p53163464p54663464.bz2-rss.xml">enwiki-latest-pages-articles27.xml-p53163464p54..&gt;</a> 26-Oct-2018 04:36                 844
<a href="enwiki-latest-pages-articles27.xml-p54663464p56163464.bz2">enwiki-latest-pages-articles27.xml-p54663464p56..&gt;</a> 24-Oct-2018 14:31           279437683
<a href="enwiki-latest-pages-articles27.xml-p54663464p56163464.bz2-rss.xml">enwiki-latest-pages-articles27.xml-p54663464p56..&gt;</a> 26-Oct-2018 04:36                 844
<a href="enwiki-latest-pages-articles27.xml-p56163464p57663464.bz2">enwiki-latest-pages-articles27.xml-p56163464p57..&gt;</a> 24-Oct-2018 14:33           327049404
<a href="enwiki-latest-pages-articles27.xml-p56163464p57663464.bz2-rss.xml">enwiki-latest-pages-articles27.xml-p56163464p57..&gt;</a> 26-Oct-2018 04:37                 844
<a href="enwiki-latest-pages-articles27.xml-p57663464p58623807.bz2">enwiki-latest-pages-articles27.xml-p57663464p58..&gt;</a> 02-Oct-2018 02:03           199695421
<a href="enwiki-latest-pages-articles27.xml-p57663464p58623807.bz2-rss.xml">enwiki-latest-pages-articles27.xml-p57663464p58..&gt;</a> 04-Oct-2018 00:49                 844
<a href="enwiki-latest-pages-articles27.xml-p57663464p58860232.bz2">enwiki-latest-pages-articles27.xml-p57663464p58..&gt;</a> 24-Oct-2018 14:50           241920961
<a href="enwiki-latest-pages-articles27.xml-p57663464p58860232.bz2-rss.xml">enwiki-latest-pages-articles27.xml-p57663464p58..&gt;</a> 26-Oct-2018 04:37                 844
<a href="enwiki-latest-pages-articles3.xml-p88445p200507.bz2">enwiki-latest-pages-articles3.xml-p88445p200507..&gt;</a> 24-Oct-2018 14:12           265380657
<a href="enwiki-latest-pages-articles3.xml-p88445p200507.bz2-rss.xml">enwiki-latest-pages-articles3.xml-p88445p200507..&gt;</a> 26-Oct-2018 04:10                 826
<a href="enwiki-latest-pages-articles4.xml-p200511p352689.bz2">enwiki-latest-pages-articles4.xml-p200511p35268..&gt;</a> 24-Oct-2018 14:11           271213655
<a href="enwiki-latest-pages-articles4.xml-p200511p352689.bz2-rss.xml">enwiki-latest-pages-articles4.xml-p200511p35268..&gt;</a> 26-Oct-2018 04:11                 829
<a href="enwiki-latest-pages-articles5.xml-p352690p565312.bz2">enwiki-latest-pages-articles5.xml-p352690p56531..&gt;</a> 24-Oct-2018 14:12           296706332
<a href="enwiki-latest-pages-articles5.xml-p352690p565312.bz2-rss.xml">enwiki-latest-pages-articles5.xml-p352690p56531..&gt;</a> 26-Oct-2018 04:11                 829
<a href="enwiki-latest-pages-articles6.xml-p565314p892912.bz2">enwiki-latest-pages-articles6.xml-p565314p89291..&gt;</a> 24-Oct-2018 14:13           320352792
<a href="enwiki-latest-pages-articles6.xml-p565314p892912.bz2-rss.xml">enwiki-latest-pages-articles6.xml-p565314p89291..&gt;</a> 26-Oct-2018 04:12                 829
<a href="enwiki-latest-pages-articles7.xml-p892914p1268691.bz2">enwiki-latest-pages-articles7.xml-p892914p12686..&gt;</a> 24-Oct-2018 14:13           328188148
<a href="enwiki-latest-pages-articles7.xml-p892914p1268691.bz2-rss.xml">enwiki-latest-pages-articles7.xml-p892914p12686..&gt;</a> 26-Oct-2018 04:12                 832
<a href="enwiki-latest-pages-articles8.xml-p1268693p1791079.bz2">enwiki-latest-pages-articles8.xml-p1268693p1791..&gt;</a> 24-Oct-2018 14:15           359092812
<a href="enwiki-latest-pages-articles8.xml-p1268693p1791079.bz2-rss.xml">enwiki-latest-pages-articles8.xml-p1268693p1791..&gt;</a> 26-Oct-2018 04:13                 835
<a href="enwiki-latest-pages-articles9.xml-p1791081p2336422.bz2">enwiki-latest-pages-articles9.xml-p1791081p2336..&gt;</a> 24-Oct-2018 14:15           348073983
<a href="enwiki-latest-pages-articles9.xml-p1791081p2336422.bz2-rss.xml">enwiki-latest-pages-articles9.xml-p1791081p2336..&gt;</a> 26-Oct-2018 04:13                 835
"""
import re
import os
LINK = re.compile(r'^.+href="(.+)">enwiki.+$')
files = [LINK.sub(r'\1', line) for line in list[1:-1].split('\n')]
files = [file for file in files if re.search(r'bz2$', file)]
# with open('enwiki-latest-pages-articles.txt', 'w') as out:
#     out.write('\n'.join(files))
cmd1 = 'wget -c https://dumps.wikimedia.org/enwiki/latest/{}'
cmd2 = 'aws s3 mv {0} s3://odl-wiki/{0}'
cmd3 = 'rm {}'
for file in files:
    print(file)
    os.system(cmd1.format(file))
    os.system(cmd2.format(file))
    os.system(cmd3.format(file))
enwiki-latest-pages-articles10.xml-p2336425p3046511.bz2
enwiki-latest-pages-articles11.xml-p3046517p3926861.bz2