Gimenz / insta-fetcher

simple instagram metadata scraping
https://www.npmjs.com/package/insta-fetcher
GNU General Public License v3.0
73 stars 33 forks source link

File System read-only #6

Closed pouryapb closed 2 years ago

pouryapb commented 2 years ago

I'm trying to use your code on a host that has only read-only access to storage, so storing cookies in a text file is making a problem. Is there any way you could make it possible so it would use memory data only? Like an option to set when making an instance of igApi.

Gimenz commented 2 years ago

did you have try, put session id when making instance

let ig = new igApi('session id here')
pouryapb commented 2 years ago

Yes, I did it exactly in this way.

Gimenz commented 2 years ago

oh, do you mean should i making an option to store cookie file or not?

like a

new igApi('session id', false)
// choose false if didn't want  to store the cookie to file
pouryapb commented 2 years ago

Yes, or any similar solutions. Currently it can't be used in a serverless function. It can be if I provide session ID each time the code runs.

Gimenz commented 2 years ago

hmmm, can you do something. and make PR 😄 i'm not sure if i did, it will give a solution

pouryapb commented 2 years ago

Well I'll try but first I should read all your code 😄

Gimenz commented 2 years ago

ok