Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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) => {
...
});
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 0 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.