Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
realtime-newsapi
Advanced tools
You can use the streaming API in your command line, or develop your own application using the API as imported package. Both options are explained below.
Before you start:
brew install node
.Type in your command line:
npm install realtime-newsapi -g
to install the packagerealtime-newsapi
to connect to the streamType in your command line:
mkdir my-project && cd my-project
to create a new folder for your project.npm init -y
to set up Node.js boilerplate.npm install realtime-newsapi
to install the package.touch index.js
to create a new file. Copy/paste the example code below
into the file index.js.const api = require('realtime-newsapi')();
api.on('articles', (articles) => {
console.log(articles);
});
node index.js
to start listening for new articles. New filings are
printed in your console as soon as they are published on one of the supported news platforms.https://codesandbox.io/s/k5q6nwqkrr
Use curl
or Postman to send requests to the query API. Articles that match your filter criteria are returned in JSON
format.
https://api.newsfilter.io/public/actions
POST
JSON
Return all articles with "FDA Approval" in the title or description of the article.
Demo: https://reqbin.com/bf9gon0l
{
"type": "filterArticles",
"queryString": "title:\"FDA Approval\" OR description:\"FDA Approval\""
}
Return all articles with mentioning AAPL
.
Demo: https://reqbin.com/b6qkjsyl
{
"type": "filterArticles",
"queryString": "title:AAPL OR description:AAPL OR symbols:AAPL"
}
id
(string) - unique ID of the articletitle
(string) - title of the articledescription
(string) - description of the articlesymbols
(array) - array of ticker symbols mentioned in the article, e.g. AAPLurl
(string) - URL to original articlepublishedAt
(string) - ISO 8601 formatted date of publication timesource
(object)
id
(string) - unique ID of news sourcename
(string) - human readable name of news sourceauthor
(string) - name of the author[
{
source: {
id: 'seekingAlpha',
name: 'Seeking Alpha'
},
symbols: ['EWH'],
title: 'Hang Seng soars despite massive rally',
description: 'Hong Kong is gearing up for more protests this week after hundreds of thousands of anti-government demonstrators braved heavy rain to rally peacefully on Sunday, marking a change to what have often been violent clashes.The scenes showed that the movement is far from fizzling out, triggering fears about retail, tourism and business confidence, as well as worries over the city\'s stock and property markets.The Hang Seng index still rose 2.2% overnight following a healthy lead from Wall Street and key interest rate reforms from the People\'s Bank of China.ETFs: EWH, FHK, FLHK',
url: 'https://seekingalpha.com/news/3492784-hang-seng-soars-despite-massive-rally',
publishedAt: '2019-08-19T03:23:00-04:00',
id: 'c7007ef5eae6cf50225cc4f19d368fe5'
},
{
source: {
id: 'businesswire',
name: 'BusinessWire'
},
symbols: ['CELG'],
title: 'U.S. FDA Approves INREBIC® (Fedratinib) as First New Treatment in Nearly a Decade for Patients With Myelofibrosis',
description: 'SUMMIT, N.J.--(BUSINESS WIRE)--Celgene Corporation (NASDAQ: CELG) today announced the U.S. Food and Drug Administration (FDA) has approved INREBIC® (fedratinib) for the treatment of adult patients with intermediate-2 or high-risk primary or secondary (post-polycythemia vera or post-essential thrombocythemia) myelofibrosis.1',
url: 'https://www.businesswire.com/news/home/20190816005292/en/U.S.-FDA-Approves-INREBIC%C2%AE-Fedratinib-New-Treatment',
publishedAt: '2019-08-16T14:30:00+00:00',
id: '129bd08d615d573fed8e12dbb917436e'
}
];
This service is already used around the world by startups, top news organizations, graduate school researchers, and, of course, hackers like you :) If you or your company are interested in more advanced features feel free to email & contact me for consulting.
FAQs
Realtime News API
The npm package realtime-newsapi receives a total of 5 weekly downloads. As such, realtime-newsapi popularity was classified as not popular.
We found that realtime-newsapi 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.