
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
economist-audio-downloader
Advanced tools
A tool to download the audio edition of The Economist from the command line
A tool for downloading the audio edition of The Economist. Requires an active subscription to the publication.
This package contains a command line tool economist-audio-downloader
as well two classes which can be used to download the publication programmatically.
Install with npm install
. If you aren't going to run mocha tests you can run npm install --only=production
to skip installing mocha.
To see the available commands and arguments run economist-audio-downloader --help
The username and password of the economist.com account can be specified via the enviornment variables ECONOMIST_USERNAME
and ECONOMIST_PASSWORD
.
All arguments, including the account credentials can be stored in a json file
Example:
{
"username": "...",
"password": "...",
"proxy_url": "socks5://..."
}
The configuration file can be referenced with the --config
or -f
argument (e.g. economist-audio-downloader -f config.json
).
Example:
economist-audio-downloader download -u ... -p ... --output "~/latest-economist-issue.zip"
This package can be used programmatically. See src/EconomistAudioDownloader.js
and src/EconomistClient.js
Example:
const { EconomistAudioDownloader, EconomistClient } = require('economist-audio-downloader');
let ead = new EconomistAudioDownloader({ username: "...", password: "" });
ead.download_audio_edition('latest', 'Introduction')
.then((result) => {
let out = result.zip.pipe(require('fs').createWriteStream("~/latest-economist-issue.zip"));
out.on('finish', () => {
console.log(`Downloaded: ${result.issue_date}`);
});
out.on('error', () => {
...
})
})
.catch((err) => {
...
});
To generate API documentation run npm run docs
. An online version of the documentation is available here.
Tests are written in mocha. Test with npm test
.
FAQs
A tool to download the audio edition of The Economist from the command line
The npm package economist-audio-downloader receives a total of 6 weekly downloads. As such, economist-audio-downloader popularity was classified as not popular.
We found that economist-audio-downloader 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.