threads-api icon indicating copy to clipboard operation
threads-api copied to clipboard

Cannot read properties of undefined (reading 'get')

Open torrober opened this issue 1 year ago • 6 comments

Hello again, i'm trying to use the api and.. image My code rn: image

I've installed the library directly from npm.

torrober avatar Jul 07 '23 21:07 torrober

tried re-installing and nothing happens :/

torrober avatar Jul 08 '23 01:07 torrober

strangely, running via node works. Might refactor this app in node

torrober avatar Jul 08 '23 02:07 torrober

Will see through, btw I don't think calling this package on the browser isn't a great idea (yet).

junhoyeo avatar Jul 08 '23 02:07 junhoyeo

strangely, running via node works. Might refactor this app in node

  • I'll see if I can add browser support, but even so we should still need something to proxy requests
  • If you're using Next.js how about using API Routes, Server Components, or Route Handlers, .etc.

junhoyeo avatar Jul 08 '23 02:07 junhoyeo

I ended up refactoring my app with node and express, just to make things easier.

torrober avatar Jul 08 '23 03:07 torrober

This is the first Threads scraper code. This requires no login . I think this will help someone.

https://github.com/iamdeepak92/threads-scraper

iamdeepak92 avatar Jul 09 '23 06:07 iamdeepak92