Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Hurriyet Public API wrapper for Humans
https://www.npmjs.com/package/hurriyet
Install using npm
npm install hurriyet
Get an API key from https://developers.hurriyet.com.tr
var Hurriyet = require('hurriyet');
var h = new Hurriyet('api token');
var newsCallback = function(err, data)
if (err)
console.log(err);
console.log(data);
};
h.Articles.getAll(newsCallback); // Get daily news
h.Articles.getAll({limit:4},newsCallback); // Get top 4 daily news
h.Articles.getAll({limit:4,select:"Description"},newsCallback); // Get top 4 daily news' descriptions
h.Articles.getFromId(40199111,newsCallback); // Get news from id = 40199111
h.Articles.getFromId(40199111,{select:"Description"},newsCallback); // Get news' description from id = 40199111
h.Columns.getAll(newsCallback); // Get columns
h.Columns.getAll({limit:4},newsCallback); // Get 4 columns
h.Columns.getAll({limit:4,select:"Fullname,Title"},newsCallback); // Get 4 columns' writer and title
h.Columns.getFromId(40190106,newsCallback); // Get column from id = 40190106
h.Columns.getFromId(40190106,{select:"Text"},newsCallback); // Get column's text from id = 40190106
h.Date(newsCallback); // Get date - type RFC 1123
h.NewsPhotoGallery.getAll(newsCallback); // Get galleries
h.NewsPhotoGallery.getAll({limit:3},newsCallback); // Get 3 galleries
h.NewsPhotoGallery.getAll({limit:4,select:"Url,Title"},newsCallback); // Get galleries' url and title
h.NewsPhotoGallery.getFromId(40190642,newsCallback); // Get gallery from id = 40190642
h.NewsPhotoGallery.getFromId(40190642,{select:"Description"},newsCallback); // Get gallery's description from id = 40190642
h.Writers.getAll(newsCallback); // Get writers
h.Writers.getAll({limit:3},newsCallback); // Get 3 writers
h.Writers.getAll({limit:4,select:"Fullname"},newsCallback); // Get writers' fullname
h.Writers.getFromId("55ea09f9f018fbaf449425c4",newsCallback); // Get writer from id = 55ea09f9f018fbaf449425c4
h.Writers.getFromId("55ea09f9f018fbaf449425c4",{select:"Fullname"},newsCallback); // Get writer's fullname from id = 55ea09f9f018fbaf449425c4
This is available as open source under the terms of the MIT License.
FAQs
Hurriyet Public API wrapper
We found that hurriyet demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.