Hello !
Currently the getUserByUsername function throws an error if the instagram user does not exists :
/node_modules/instapro/index.js:15 resolve(JSON.parse(eleHTML.split('"ProfilePage":[')[1].split(']},"hostname"')[0]).graphql.user); TypeError: Cannot read property 'split' of undefined
Would it be possible to check if the user exists and reject the promise instead ?
Or maybe create a checkUserExistsByUsername function ?
Edit : same for getUserIdFromUsername
Edit 2 : I made a pull request
Hello ! Currently the getUserByUsername function throws an error if the instagram user does not exists :
/node_modules/instapro/index.js:15 resolve(JSON.parse(eleHTML.split('"ProfilePage":[')[1].split(']},"hostname"')[0]).graphql.user); TypeError: Cannot read property 'split' of undefined
Would it be possible to check if the user exists and reject the promise instead ? Or maybe create a checkUserExistsByUsername function ?
Edit : same for getUserIdFromUsername Edit 2 : I made a pull request
Thanks !