Open bbest opened 1 year ago
From @jzadra : the news package from Matt Tierney is ~6 yrs old, so prob want to go a diff't direction
For raw API parsing, check out:
Hi @jzadra,
Check out this little example of using the free version (100 requests per day, search articles up to a month old) of the newsapi.org API (see docs) using R package httr2
:
news-api.qmd
Next steps could be:
Another R Package for newsapi.org: https://cran.r-project.org/web/packages/newsanchor/vignettes/usage-newsanchor.html
I have not investigated thoroughly; probably created our own API requests is more customizable.
News API
Function features:
Decisions to be made:
@geocoug's suggestion of each news item to have it's own *.qmd doc is a good one. The metadata can be populated into the frontmatter yaml and then a listing created per here:
Newsapi.org results are listed on the index page (currently most recent 3), and there is a News page with all results.
Next items to do:
The following RSS feeds suggested above either do not have rss feeds, or link to empty xml documents:
The issue with the news item below is not clear. It appears to break at the $
, however there are 15 other news items that have $
in the title and do not have an issue.
It appears that this issue is due to it trying to render it as a mathjax equation. I am still at a loss as to why. @bbest any ideas?
Ok, I have further eliminated some possible causes - it turns out that the offending item "Landmark California"... is not the issue. If it is removed, a different item has the same issue:
Original issue
Same issue, different item once first item is removed:
[x] searches:
See News — Offshore Wind California
newsapi
(formerly GoogleNews API)