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.
techcrunch-api
Advanced tools
TechCrunch API is a powerful Node.js package designed to facilitate the extraction of article data from TechCrunch based on specific categories or tags
TechCrunch API is a Node.js package that allows you to scrape articles from TechCrunch based on categories or tags. This package is designed for systems using Ubuntu or other Debian-based distributions that support sudo
commands, leveraging Puppeteer to navigate and scrape content from a headless Chromium environment. 🌐
Before installing the TechCrunch Scraper, you need to ensure your system has the following dependencies installed:
Follow these steps to set up the TechCrunch Scraper package:
Open a terminal and execute the following commands to install necessary libraries:
sudo apt-get update
sudo apt-get install -y libgbm-dev xvfb chromium-browser libvpx7 libevent-2.1-7 libharfbuzz-icu0 libgstgl-1.0-0 libgstcodecparsers-1.0-0 libwebpdemux2 libenchant-2-2 libsecret-1-0 libmanette-0.2-0 libflite1 libx264-155 libgles2-mesa
npx playwright install
Xvfb :99 -screen 0 1920x1080x24 &
export DISPLAY=:99
Install the package via npm with the following command:
npm install techcrunch-api
import { getByCategory, getByTag } from "techcrunch-api";
// Fetch articles by category
// Valid categories/tags for fetching articles (must be used in lowercase):
// 1. media-entertainment
// 2. transportation
// 3. cryptocurrency
// 4. security
// 5. artificial-intelligence
// 6. apps
// 7. fintech
// 8. startups
// 9. venture
// 10. hardware
getByCategory("artificial-intelligence").then((articles) => {
console.log(articles);
});
// Fetch articles by tag
// By Popular Keywords search it
getByTag("startups").then((articles) => {
console.log(articles);
});
const techCrunchAPI = require("techcrunch-api");
// Fetch articles by category
techCrunchAPI
.getByCategory("artificial-intelligence")
.then(function (articles) {
console.log(articles);
});
// Fetch articles by tag
techCrunchAPI.getByTag("startups").then(function (articles) {
console.log(articles);
});
xvfb-run --auto-servernum --server-args='-screen 0 1024x768x24' node your-script.js
FAQs
TechCrunch API is a powerful Node.js package designed to facilitate the extraction of article data from TechCrunch based on specific categories or tags
The npm package techcrunch-api receives a total of 3 weekly downloads. As such, techcrunch-api popularity was classified as not popular.
We found that techcrunch-api demonstrated a healthy version release cadence and project activity because the last version was released less than 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.