Hi, There's littles mistakes in the documentation and in code.
It's written in the doc so:
const FongsiDev_Scraper = require("@fongsidev/scraper");
const FongsiDev_Scraper = await import("@fongsidev/scraper");
import FongsiDev_Scraper from "@fongsidev/scraper";
//Downloader Tiktok
FongsiDev_Scraper.Tiktok("<Url Tiktok>").then(console.log); //<Object>//
FongsiDev_Scraper.Tiktok
should be FongsiDev_Scraper.TiktokVideo
In Twitter-Downloader.js
, line 42
if (!global.isUrlFSPR(Url) || !/x\.com|twitter\.com/i.test(Url))
You are checking if the link as the new X.com hostname, nice
But In Twitter-Downloader.js
, line 150
} else if (url.match(/twitter/i)) {
resolve({
type: "twitter",
...(await TwitterDownloader(url)),
Which comes before calling TwitterDownloader.js
, you forgot to.
I found two more, but i don't remember what was them. It was same minor errors, no big deal.
Thanks for your efforts by making this package.
Have nice day!