samedi 2 février 2019

How to take a text (from web) and make an array of sentences ? [JS] [on hold]

I want to make an app that can randomly show me sentences from a web page. Let's say it's - https://en.wikipedia.org/wiki/January_31_%E2%80%93_February_2,_2011_North_American_blizzard

Now, I am a beginner and I assume that I need to convert this text into an array of strings (correct me if i'm wrong) and then pull random strings and display them on the app.

Now, I haven't got the slightest clue on how I can pull a page from web and work on it, let alone convert it into sentences.

So that's I guess two questions right there.

1) how to pull data from a web page ? 2) how do I convert long text into an array of sentences ?




Aucun commentaire:

Enregistrer un commentaire