Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameters for latest news or news from last n days? #16

Closed
ghost opened this issue Sep 18, 2016 · 2 comments
Closed

Parameters for latest news or news from last n days? #16

ghost opened this issue Sep 18, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 18, 2016

I have installed this package from CRAN (tm.plugin.webmining_1.3 tm_0.6-2) and my R version is 3.3.1 . I want to get latest news or news from last n days?

lastndays=2
WebCorpus(GoogleFinanceSource("NASDAQ:MSFT",params = list(hl = "en", q = query, ie = "utf-8", start = 0, num = 20, output = "rss",lastndays=2)))

also some of the functions are not working WebCorpus(GoogleNewsSource("Microsoft")), WebCorpus(YahooFinanceSource("MSFT")) returns similar error

Unknown IO errorfailed to load external entity "http://feeds.finance.yahoo.com/rss/2.0/headline?s=MSFT&region=US&lang=en-US"
Error: 1: Unknown IO error2: failed to load external entity "http://feeds.finance.yahoo.com/rss/2.0/headline?s=MSFT&region=US&lang=en-US"
@mannau
Copy link
Owner

mannau commented Feb 26, 2017

lastndays is AFAIK no valid parameter for Google Finance feeds.

The call

WebCorpus(GoogleNewsSource("Microsoft"))

works on my computer. Unfortunately

WebCorpus(YahooFinanceSource("MSFT"))

does not. Will be fixed soon.

Best,
mario

@mannau mannau closed this as completed in a2e7d08 Feb 26, 2017
@biranchi2018
Copy link

is it fixed yet ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants