tiktok_scraper 0.0.9 copy "tiktok_scraper: ^0.0.9" to clipboard
tiktok_scraper: ^0.0.9 copied to clipboard

A Flutter package for scraping TikTok videos and user data, with features for generating links and validating usernames.

example/lib/main.dart

import 'dart:convert';
import 'package:tiktok_scraper/tiktok_scraper.dart';

void main() async {
  try {
    var username = 'mubashardev';
    var author = await TiktokScraper.getUserInfo(username);

    print(jsonEncode(author.toMap()));

    var videoUrl =
        'https://www.tiktok.com/@mubashardev/video/7393468652906925317';
    var video = await TiktokScraper.getVideoInfo(videoUrl);

    print(jsonEncode(video.toMap()));
  } catch (e) {
    print(e);
  }
}
6
likes
160
points
263
downloads

Publisher

verified publishermubashar.dev

Weekly Downloads

A Flutter package for scraping TikTok videos and user data, with features for generating links and validating usernames.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

dio, flutter, html

More

Packages that depend on tiktok_scraper