Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
reddit-user-dump
Advanced tools
scrapes a reddit user's complete post history
(thanks to max ogden for inspiration https://github.com/maxogden/subreddit-youtubes)
NEW: you can also pass in a second argument that will stop parsing if the comment is older than a given 'created' value
npm install reddit-user-dump
var lastParsed = 0;
function wrapper(username, callback) {
var test = require('../index.js')
console.log(test);
var submissionCount = 0;
var commentCount = 0;
var total = 0;
test(username, lastParsed)
.on('user', function(userObj) {
console.log(userObj);
})
.on('submission', function(submission) {
submissionCount += 1;
})
.on('comment', function(comment) {
//console.log('comment found!');
commentCount += 1;
})
.on('page', function(after, count) {
total += count;
console.log('page complete found',
'submission: ', submissionCount, 'comment', commentCount, 'total', total);
})
.on('data', function(obj) { //this is a comment or submission that is pushed
if (obj.data.created > lastParsed) lastParsed = obj.data.created;
})
.on('end', function() {
console.log('end')
console.log('parse complete found',
'submission: ', submissionCount, 'comment', commentCount, 'total', total);
callback();
})
.on('error', function(err) {
console.log('err', err)
});
}
wrapper('hortinstein', function(e, r) {
wrapper('hortinstein', function() {
});
})
BSD
FAQs
dumps a redditor's history in json
The npm package reddit-user-dump receives a total of 1 weekly downloads. As such, reddit-user-dump popularity was classified as not popular.
We found that reddit-user-dump 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.