New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

transfermarkt

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

transfermarkt

Scrape top transfer and query fotball club in world

latest
Source
npmnpm
Version
0.0.3
Version published
Weekly downloads
4
300%
Maintainers
1
Weekly downloads
 
Created
Source

transfermarkt

Scrape top transfer and query fotball club in world

Table of Contents

  • transfermarkt

Usage

For Node.js

Install using:

npm install transfermarkt --save

WARNING

this module require nodejs ver ^18.11.0

Get top transfer:

var { clubInfoFromCountry, topTransfer, findland } = require("transfermarkt");

(async() => {
    const transfer = await topTransfer("brazil")
    console.log(transfer)
})()
// ->
[
  {
    name: 'Erling Haaland',
    position: 'Centre-Forward',
    marketprice: '€150.00m',
    newclub: 'Manchester City',
    images: {
      photo: 'https://tmssl.akamaized.net/images/flagge/verysmall/189.png?lm=1520611569',
      logo: 'https://tmssl.akamaized.net/images/wappen/tiny/281.png?lm=1467356331'
    }
  },
  {
    name: 'Antony',
    position: 'Right Winger',
    marketprice: '€35.00m',
    newclub: 'Manchester United',
    images: {
      photo: 'https://tmssl.akamaized.net/images/wappen/tiny/985.png?lm=1457975903',
      logo: 'https://tmssl.akamaized.net/images/flagge/verysmall/189.png?lm=1520611569'
    }
  },
  ...
]

Get clubs by country:

var { clubInfoFromCountry, topTransfer, findland } = require("transfermarkt");

(async() => {
    const clubs = await clubInfoFromCountry("indonesia")
    console.log(clubs)
})()
// ->
[
  {
    name: 'Indonesia',
    league: 'International Friendlies',
    marketvalue: '€6.35m',
    squad_size: '23',
    average_age: '24.7',
    foreigners: '6  26.1 %',
    'konföderation': 'AFC',
    fifa_world_ranking: 'Pos 152',
    players: [
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object]
    ]
  },
  {
    name: 'Persija Jakarta',
    league: 'Liga 1 Indonesia',
    marketvalue: '€6.15m',
    squad_size: '34',
    average_age: '24.6',
    foreigners: '4  11.8 %',
    national_team_players: '6',
    stadium: 'Stadion Patriot Candrabhaga  30.000 Seats',
    current_transfer_record: '€-200k',
    players: [
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object]
    ]
  },
  ...
]

Keywords

scrape

FAQs

Package last updated on 01 Jan 2023

Did you know?

Socket

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.

Install

Related posts