Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Latest commit

 

History

History
38 lines (27 loc) · 821 Bytes

README.md

File metadata and controls

38 lines (27 loc) · 821 Bytes

finder-scraper / Exports

finder-scraper

Documentation

CLI

npx finder-scraper <FINDER_SEARCH_URL> <output.csv>

Esimerkiksi: npx finder-scraper https://www.finder.fi/search?what=IT-palvelut it-palvelut.csv

Käyttö osana koodia

npm install finder-scraper

import { Finder, YTJ } from 'finder-scraper'

// Use methods
const page = 1
await Finder.searchCompanies(
  'https://www.finder.fi/search?what=IT-palvelut+Espoo',
  page
)
await Finder.getCompany(
  '/Televiestint%C3%A4+televiestint%C3%A4palvelut/Nokia+Oyj/Espoo/yhteystiedot/159843'
)
const skip = 500
const limit = 10
await YTJ.searchCompanies(skip, limit, 'OYJ')

const companyId = '0112038-9' // Y-tunnus
await YTJ.getCompany(companyId)