Skip to content
This repository has been archived by the owner on Jan 28, 2022. It is now read-only.

Do not target random generated classes - script error #36

Open
blackbyte-pl opened this issue Aug 9, 2018 · 2 comments
Open

Do not target random generated classes - script error #36

blackbyte-pl opened this issue Aug 9, 2018 · 2 comments

Comments

@blackbyte-pl
Copy link
Contributor

blackbyte-pl commented Aug 9, 2018

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

@blackbyte-pl blackbyte-pl changed the title Do not target random generated classess Do not target random generated classes - script error Aug 9, 2018
@nacimgoura
Copy link
Owner

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
Copy link
Contributor Author

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

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

No branches or pull requests

2 participants