Closed marisid closed 8 years ago
A global object could hold much more information, including JSON urls to articles, urls to images/logos, date article created etc. But the core information parsed to TextRazor would appear like this:
var jsonToGoToTextRazor = {
bbc-news: [
'headline1 description',
'headline2 description',
'headline3 description'
],
mirror: [
'headline1 description',
'headline2 description',
'headline3 description'
],
mail: [
'headline3 description',
'headline4 description'
]
}
So are we sending headlines from multiple newspapers to be analysed or are we choosing individual newspapers?
Good point @tbtommyb. The json headline object will contain headlines from a single source, as selected by the user before fetching any news feed. (update to step 3 above: make an article request for a selected source from the available sources array - maybe a dropdown list? TBC)
Steps