Description Usage Arguments Value Note Examples
Scrap article headline and body text from BBC News website (https://www.bbc.com/news/), merge them together and create a Corpus for text mining.
1 | get_text(url_end)
|
url_end |
character string, an ending part of BBC News particular atricle URL (everything after https://www.bbc.com/news/). For example, article URL is "https://www.bbc.com/news/world-us-canada-51381625". Only "world-us-canada-51381625" should be pasted |
art_c - Corpus representing a collection of text documents with an article text (each article paragraph as a single document in Corpus)
Please, check that URL (url_end) exists before running the function, otherwise you will get an "Error in open.connection(x, "rb") : HTTP error 404". Please, insert URLs of the articles in English only. Only for BBC News, not BBC Sports , Travel, Worklife, etc.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.