# id-investing-scraper

> _DEVELOPED BY: Damar Nur Ichwan_

Latest version **1.0.32** (published 2022-12-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install id-investing-scraper
pnpm add id-investing-scraper
yarn add id-investing-scraper
bun add id-investing-scraper
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.32 |
| Published | 2022-12-28 |
| First published | 2022-10-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 139.9 KB |
| Known vulnerabilities | 0 (+25 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Damar Nur Ichwan |
| Maintainers | damarnurichwan |

## Links

- npm: https://www.npmjs.com/package/id-investing-scraper
- Repository: https://github.com/damar-nur-ichwan/id-investing-scraper
- Homepage: https://github.com/damar-nur-ichwan/id-investing-scraper#readme
- Issues: https://github.com/damar-nur-ichwan/id-investing-scraper/issues
- npm.io page: https://npm.io/package/id-investing-scraper

## Dependencies (4)

- [fs](https://npm.io/package/fs.md) ^0.0.1-security
- [axios](https://npm.io/package/axios.md) ^0.27.2
- [cheerio](https://npm.io/package/cheerio.md) ^1.0.0-rc.12
- [get-indonesia-time](https://npm.io/package/get-indonesia-time.md) ^1.0.3

## Recent versions

- 1.0.32 (latest) — 2022-12-28
- 1.0.31 — 2022-12-25
- 1.0.30 — 2022-12-22
- 1.0.29 — 2022-12-17
- 1.0.28 — 2022-12-17
- 1.0.27 — 2022-12-17
- 1.0.26 — 2022-12-17
- 1.0.25 — 2022-12-17
- 1.0.24 — 2022-12-17
- 1.0.23 — 2022-12-17
- 1.0.22 — 2022-12-17
- 1.0.21 — 2022-12-02
- 1.0.20 — 2022-11-16
- 1.0.19 — 2022-11-16
- 1.0.18 — 2022-11-16
- … 17 more at https://npm.io/package/id-investing-scraper/versions

## README

_DEVELOPED BY: Damar Nur Ichwan_

# INVESTING SCRAPPER

This module has the task of retrieving Indonesian stock data in [investing.com](https://www.investing.com/).

## Instalation

**NPM Package**

```cmd
npm i id-investing-scrapper
```

**Yarn Package**

```cmd
yarn add id-investing-scrapper
```

## Parameters

- `GeneralEquityURL`
  ```ts
  // Example
  const BBCA = "https://www.investing.com/equities/bnk-central-as";
  const BMRI = "https://www.investing.com/equities/bank-mandiri-t";
  const BBRI = "https://www.investing.com/equities/bank-rakyat-in";
  ```
- `Code`
  ```ts
  // Example
  const code = "BBCA";
  ```

## Features & Usage

### Scrape Company Profile

**ExampleExample:**

```ts
import { ScrapeCompanyProfile } from "id-investing-scrapper";

const BBCA = "https://www.investing.com/equities/bnk-central-as";
const GeneralEquityURL = BBCA;

ScrapeCompanyProfile(GeneralEquityURL).then((res) => console.log(res));
```

**Output Model:**

```ts
interface CompanyProfile {
  code: string;
  name: string;
  description: string;
  sector: string;
  inductry: string;
  contact: {
    address: string[];
    phone: string;
    fax: string;
    web: string;
  };
  topExecutives: {
    name: string;
    age: string;
    since: string;
    title: string;
  }[];
}
```

### Scrape Dividends

**Example:**

```ts
import { ScrapeDividends } from "id-investing-scrapper";

const BBCA = "https://www.investing.com/equities/bnk-central-as";
const GeneralEquityURL = BBCA;

ScrapeDividends(GeneralEquityURL).then((res) => console.log(res));
```

**Output Model:**

```ts
interface Dividends {
  code: string;
  name: string;
  dividends: {
    exDate: string;
    dividend: string;
    payDate: string;
    yield: string;
  }[];
}
```

### Scrape Ratios

**Example:**

```ts
import { ScrapeRatios } from "id-investing-scrapper";

const BBCA = "https://www.investing.com/equities/bnk-central-as";
const GeneralEquityURL = BBCA;

ScrapeRatios(GeneralEquityURL).then((res) => console.log(res));
```

**Output Model:**

```ts
interface Ratios {
  code: string;
  name: string;
  ratios: {
    name: string;
    company: string;
    industry: string;
  }[];
}
```

### Scrape Financial Summary

**Example:**

```ts
import { ScrapeFinancialSummary } from "id-investing-scrapper";

const BBCA = "https://www.investing.com/equities/bnk-central-as";
const GeneralEquityURL = BBCA;

ScrapeFinancialSummary(GeneralEquityURL).then((res) => console.log(res));
```

**Output Model:**

```ts
interface FinancialSummary {
  code: string;
  name: string;
  summary: string;
}
```

### Scrape Technical Summary - daily

**Example:**

```ts
import { ScrapeTechnicalSummary } from "id-investing-scrapper";

const BBCA = "https://www.investing.com/equities/bnk-central-as";
const GeneralEquityURL = BBCA;

ScrapeTechnicalSummary(GeneralEquityURL).then((res) => console.log(res));
```

**Output Model:**

```ts
interface TechnicalSummary {
  code: string;
  name: string;
  volume: number;
  price: number;
  change: number;
  status: string;
}
```

### Scrape Code List

**Example:**

```ts
import { ScrapeCodeList } from "id-investing-scrapper";

ScrapeCodeList().then((res) => console.log(res));
```

**Output Model:**

```ts
interface CodeList {
  code_list: string[];
}
```

### FindGeneralEquityURL

**Example:**

```ts
import { FindGeneralEquityURL } from "id-investing-scrapper";

const BBCA = "https://www.investing.com/equities/bnk-central-as";
const GeneralEquityURL = BBCA;

FindGeneralEquityURL(GeneralEquityURL).then((res) => console.log(res));
```

**Output Model:**

```ts
interface FindGeneralEquityURL {
  code: string;
  url: string;
}
```

---
_Source: https://npm.io/package/id-investing-scraper · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
