# Converts output of web crawler for document classifier
import json 
import pandas as pd

data = dict()
with open('wiki_pages.json') as json_file: 
	data = json.load(json_file)

text_list = list()
link_list = list()
for row in data:
	text_list.append(row['text'])
	link_list.append(row['link'])

pd.DataFrame(data={'Text': text_list, 'link': link_list}).to_csv('to_predict.csv', index=False)

46456642e562e66a6b9af545464c6ab45761c713
<mask token>

<mask token>
with open('wiki_pages.json') as json_file:
    data = json.load(json_file)
<mask token>
for row in data:
    text_list.append(row['text'])
    link_list.append(row['link'])
pd.DataFrame(data={'Text': text_list, 'link': link_list}).to_csv(
    'to_predict.csv', index=False)

<mask token>
data = dict()
with open('wiki_pages.json') as json_file:
    data = json.load(json_file)
text_list = list()
link_list = list()
for row in data:
    text_list.append(row['text'])
    link_list.append(row['link'])
pd.DataFrame(data={'Text': text_list, 'link': link_list}).to_csv(
    'to_predict.csv', index=False)

import json
import pandas as pd
data = dict()
with open('wiki_pages.json') as json_file:
    data = json.load(json_file)
text_list = list()
link_list = list()
for row in data:
    text_list.append(row['text'])
    link_list.append(row['link'])
pd.DataFrame(data={'Text': text_list, 'link': link_list}).to_csv(
    'to_predict.csv', index=False)

# Converts output of web crawler for document classifier
import json 
import pandas as pd

data = dict()
with open('wiki_pages.json') as json_file: 
	data = json.load(json_file)

text_list = list()
link_list = list()
for row in data:
	text_list.append(row['text'])
	link_list.append(row['link'])

pd.DataFrame(data={'Text': text_list, 'link': link_list}).to_csv('to_predict.csv', index=False)
