Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is this Libarary unusable now? #296

Open
umang350 opened this issue Aug 27, 2022 · 13 comments
Open

Is this Libarary unusable now? #296

umang350 opened this issue Aug 27, 2022 · 13 comments

Comments

@umang350
Copy link

It seems it doesn't works in any way, thus please add note to the readme for saving time of developers stumbling upon this library.
#291

@emauriciomoreno
Copy link

Yes, that's right, the library has stopped working. At the point where it gets the csrf_token, before the login process

@ubaidimranofficial
Copy link

I have a solution for that :_

@emauriciomoreno
Copy link

Please tell me

@ubaidimranofficial
Copy link

You can update this code, I just debugged the issue and solved it on a production level. :)
Thanks, me later.

let value = this.request('/', { resolveWithFullResponse: true }).then(res => {
      const pattern = new RegExp(/(csrf_token\\":\\")[\w]+/)
      const matches = res.body.match(pattern)
      value = matches[0].substring(15)
    })

@emauriciomoreno
Copy link

Thanks a lot. you saved my day

@tusharsinghal1610
Copy link

Thanks a lot @ubaidimranofficial

@espressostack
Copy link

@ubaidimranofficial Thanks a lot bro

@DreamBoy65
Copy link

You can update this code, I just debugged the issue and solved it on a production level. :) Thanks, me later.

let value = this.request('/', { resolveWithFullResponse: true }).then(res => {
      const pattern = new RegExp(/(csrf_token\\":\\")[\w]+/)
      const matches = res.body.match(pattern)
      value = matches[0].substring(15)
    })

now its giving:
Screenshot_20221124-183505_Termux

@quaint-racoon
Copy link

Got same error as the guy above any solutions?

@marcelo-earth
Copy link

You can update this code, I just debugged the issue and solved it on a production level. :) Thanks, me later.

let value = this.request('/', { resolveWithFullResponse: true }).then(res => {
      const pattern = new RegExp(/(csrf_token\\":\\")[\w]+/)
      const matches = res.body.match(pattern)
      value = matches[0].substring(15)
    })

Wait, but where I put this?

@quaint-racoon
Copy link

You can update this code, I just debugged the issue and solved it on a production level. :) Thanks, me later.

let value = this.request('/', { resolveWithFullResponse: true }).then(res => {
      const pattern = new RegExp(/(csrf_token\\":\\")[\w]+/)
      const matches = res.body.match(pattern)
      value = matches[0].substring(15)
    })

Wait, but where I put this?

U edit the package code itself and replace the bugged code

@marcelo-earth
Copy link

You can update this code, I just debugged the issue and solved it on a production level. :) Thanks, me later.

let value = this.request('/', { resolveWithFullResponse: true }).then(res => {
      const pattern = new RegExp(/(csrf_token\\":\\")[\w]+/)
      const matches = res.body.match(pattern)
      value = matches[0].substring(15)
    })

Wait, but where I put this?

U edit the package code itself and replace the bugged code

Wow, okay. Thank you.

@ardinusawan
Copy link

For everyone who looking for solution:
Based on this youtube desc: https://www.youtube.com/watch?v=XzyYi_yv86A

  1. Create an empty directory in the root of your app called "instagram-web-api"
  2. Copy the index.js file from my GitHub repo (https://github.com/amamenko/inky-dood... into that directory.
  3. Substitute your current import of the "Instagram" object from the instagram-web-api library in your app with const Instagram = require("./instagram-web-api/index");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants