Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ const startScraper = async (argv) => {
if (argv.async) {
argv.asyncBulk = argv.async;
}
argv.bulk = false;
// argv.bulk is set by yargs from the CLI --bulk flag
// we don't need to set it here as it's already available
const scraper = await IGScraper[argv.scrapeType](argv.input, argv);

if (scraper.zip) {
Expand Down Expand Up @@ -88,6 +89,12 @@ yargs
default: 40,
describe: 'Number of post to scrape',
},
bulk: {
alias: 'b',
boolean: true,
default: false,
describe: 'Enable bulk mode to retrieve more than 50 posts (needed for large counts)',
},
mediaType: {
alias: 'm',
default: 'all',
Expand Down