Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
f1-api-node
Advanced tools
The scraper scrapes this website: https://www.formula1.com
npm i f1-api-node
getConstructorStandings
Fetch Constructors standings from points table.
The function takes one argument: The year from which you want to extract points table for.
Default argument is the current year.
getDriverStandings
Fetch F1 driver standings from points table.
The function takes one argument: The year from which you want to extract points table for.
Default argument is the current year.
getDriverData
Fetch the current lineup of F1 drivers.
No arguments
getTeamsData
Fetch the current list of F1 teams along with their information.
No arguments
getWorldChampions
Fetch all the world champions
No arguments
If you want to have a look at the output from the given functions check this.
Example on how to use one of the given functions.
The following function will print the current lineup of F1 drivers.
const f1Api = require('f1-api-node')
const myFunction = async () => {
const driverLineup = await f1Api.getDriverData()
console.log(driverLineup)
}
myFunction()
WARNING: Abusing this library may result in an IP ban from the host website.
Please use with caution and try to limit the rate and amount of your requests if you value your access to formula1.com
If you have any problems regarding this project, read the following disclaimer.
FAQs
A simple library written in typescript to fetch Formula-1 data
The npm package f1-api-node receives a total of 74 weekly downloads. As such, f1-api-node popularity was classified as not popular.
We found that f1-api-node demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.