1.5.1 • Published 2 years ago

@a-soul/extractor-douyin v1.5.1

Weekly downloads
-
License
AGPL-3.0-or-later
Repository
github
Last release
2 years ago

@a-soul/extractor-douyin

Pure RENDER_DATA data extractor/scraper for Douyin without using API.

Features

  • Simple, fast, ESM by default
  • Minimal dependencies, HTTPS requests by got

Usage

import extract from '@a-soul/extractor-douyin';

const url = `https://www.douyin.com/user/MS4wLjABAAAA5ZrIrbgva_HMeHuNn64goOD2XYnk4ItSypgRHlbSh1c`;
const resp = await extract(url);

console.log(resp._location);
//=> /user/MS4wLjABAAAA5ZrIrbgva_HMeHuNn64goOD2XYnk4ItSypgRHlbSh1c

Options

const options = {
  mobileUserAgent: `got`,
  desktopUserAgent: `got`,
  requestOptions: {
    timeout: {
      request: 3000
    },
    retry: {
      limit: 3,
    }
  }
}
await extract(url, options);

License

AGPL-3.0

1.5.1

2 years ago

1.5.0

2 years ago

1.3.2

2 years ago

1.4.0

2 years ago

1.2.12

2 years ago

1.2.11

2 years ago

1.2.10

3 years ago

1.2.9

3 years ago

1.2.6

3 years ago