Dear Wolfram Users,
I am new to Mathematica and I wanted to replicate this study in order to learn how to do sentiment analysis on website data.
However, it seems to me, that the code is not working. Maybe it was an older Mathematica code?
For example:
archive =
Import[StringJoin["http://www.wsj.com/public/page/archive-",
DateString[
datelist[[1]], {"Year", "-", "MonthShort", "-", "DayShort"}],
".html"]];
archive =
StringDrop[archive,
StringPosition[archive,
DateString[
datelist[[1]], {"MonthName", " ", "DayShort", ", ",
"Year"}]][[1, 2]]];
archive =
StringTake[
archive, -1 + StringPosition[archive, "ARCHIVE FILTER"][[1, 1]]];
archivewords = ToLowerCase[DeleteStopwords[TextWords[archive]]];
TakeLargest[Counts[archivewords], 20]
WordCloud[archivewords]
This command should download news from the WSJ archive and format for Machine Learning purposes. But somehow it is not working. Can somebody help me to replicate this code in a new way?
I also think that one of the problems is that this code is not able to switch archive dated anymore.
Or maybe there is a newer version of the article?
Thank you very much.

