import gzip
import json
if __name__ == '__main__':
    with gzip.open('data/jawiki-country.json.gz', 'rb') as f:
        for line in f:
            line = line.strip()
            data = json.loads(line)
            if data['title'] == 'イギリス':
                text = data['text']
    with open('data/イギリス.txt', 'w') as f:
        f.write(text)

847c0d77461db695ffc7c2d2a91488064ec8418d
<mask token>

<mask token>
if __name__ == '__main__':
    with gzip.open('data/jawiki-country.json.gz', 'rb') as f:
        for line in f:
            line = line.strip()
            data = json.loads(line)
            if data['title'] == 'イギリス':
                text = data['text']
    with open('data/イギリス.txt', 'w') as f:
        f.write(text)

import gzip
import json
if __name__ == '__main__':
    with gzip.open('data/jawiki-country.json.gz', 'rb') as f:
        for line in f:
            line = line.strip()
            data = json.loads(line)
            if data['title'] == 'イギリス':
                text = data['text']
    with open('data/イギリス.txt', 'w') as f:
        f.write(text)
