New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

sosmed

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

sosmed

Social media scraper module

latest
Source
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

Social media Scraper

Scraper social media data

Installation

npm i @bochilteam/scraper-sosmed

Usage

Example tiktok video download

// Import module
import { savefrom, tiktokdl } from '@bochilteam/scraper-sosmed'

const url = 'https://www.tiktok.com/@omagadsus/video/7025456384175017243?is_from_webapp=1&sender_device=pc&web_id6982004129280116226'
// Using tiktokdl
const data = await tiktokdl(url)
console.log(data) // JSON
// Using savefrom
const result = await savefrom(url)
console.log(result) // JSON

Example download youtube video

import { youtubedl } from '@bochilteam/scraper-sosmed'

const data = await youtubedl('https://youtu.be/iik25wqIuFo')
console.log(data) // JSON
console.log(Object.keys(data.video)) // List of resolution/quality
const url = await data.video['720p'].download() // Download '720p' video
console.log(url) // string

Documentation

FAQs

Package last updated on 04 Oct 2024

Related posts