nacimgoura / instagram-profilecrawl

:computer: Quickly crawl the information (e.g. followers, tags, etc...) of an instagram profile. No login required!
MIT License
121 stars 30 forks source link

Do not target random generated classes - script error #36

Open blackbyte-pl opened 6 years ago

blackbyte-pl commented 6 years ago

Currently to target elements you use random generated classnames that instagram is rerolling from time to time like: h1._rf3jb. This class does not exist any more which causes puppeteer to error and whole script to die. Please target specific tags or sections, do not rely on classes

nacimgoura commented 6 years ago

Thanks you for warning me. Yes I know they are generated but I couldn't see any other way to recover the element. You can create a PR if you have a solution.

blackbyte-pl commented 6 years ago

There is no perfect solution for some of the items but main ones should be doable. I will drop a PR soon