Alpha
Scrapes media URLs from Threads posts
The Threads post URL to scrape
Optional configuration for the request
Promise resolving to media URLs from the post
import { threads } from 'nb-scraper';const result = await threads('https://www.threads.net/@username/post/123456789');if (result.status) { console.log('Images:', result.data.image_urls); console.log('Videos:', result.data.video_urls);} Copy
import { threads } from 'nb-scraper';const result = await threads('https://www.threads.net/@username/post/123456789');if (result.status) { console.log('Images:', result.data.image_urls); console.log('Videos:', result.data.video_urls);}
Will not throw errors, returns error response instead
Rian
Scrapes media URLs from Threads posts