Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
hook.io-twitter
Advanced tools
Hook.io Twitter is a wrapper around the most commonly used parts of ntwitter that provides support for the Twitter streaming API, and for several methods in the Twitter REST API.
git clone git@github.com:hookio/twitter.git
cd twitter
npm install
git clone git@github.com:hookio/twitter.git
cd irc
npm install
node bin/twitter
npm install hook.io-twitter
hookio-twitter
Hook.io Twitter ships with a simple CLI interface. To get started:
bin/twitter --shell
Some example commands:
tweet Hi everybody, I'm using a CLI Twitter client!
report bigspammer5
follow bestfriend454
exit
tweet message - Tweets [message] from the configured Twitter account.
follow username - Starts following the given user.
report username - Reports the given user for spam and blocks them.
block username - Blocks the given user. Note: will not block all tweets from that user.
stopTweets - Disconnects the connection to the Twitter streaming API, if connected.
startTweets - Reconnects to the Twitter streaming API, if not already connected.
save - Saves configuration to disk.
twitVerified - Your Twitter API credentials have been approved.
connecting - Starting connection to Twitter Stream API.
streamConnected - Streaming API connection started.
keptTweet message - An incoming tweet has cleared all filters, and is being shared.
tweeted message - The given message has been successfully tweeted.
following username - The given user is now being followed.
reported username - The given user has been reported as a spammer.
blocked username - The given user has been blocked.
The public Twitter feed is a lot of data, even with a seemingly narrow list of search terms, and, as a result, Hook.io Twitter has several filtering mechanisms in place.
Twitter stream filtering is an imperfect and ongoing process - suggestions are always welcome.
{
"auth": {
"twitter": {
"consumer_key": "twitter",
"consumer_secret": "creds",
"access_token_key": "go",
"access_token_secret": "here"
},
"bitly": {
"user": "for shortlinks",
"key": "if you want them"
}
},
"track": [
"Node.js",
"Nodejitsu",
"#nodejs",
"NodeKohai"
],
"follow": [],
"recentTweets": []
}
FAQs
Twitter API Client for hook.io
We found that hook.io-twitter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.