aj-4 / ig-followers

see who unfollowed you with python
199 stars 132 forks source link

Upgrade code #8

Open Baelfire18 opened 4 years ago

Baelfire18 commented 4 years ago

Hi Aaron, i have been watching your code and trying to upgrade it so it be compatible with the upgraded frontend of instagram. Im in the part of the scrollIntoview (line 42 in your main.py) and i cant seem to make it work: my line now is: self.driver.execute_script('arguments[0].scrollIntoView(true);') (Now the variable sugs its not necesary because the option Suggestions is not longer in the end) How would you upgrate this part? I dont seem to totally understand how does the methot exectute_script works. Everything up to this point is working fine. Can you help making it work it please?

HariAcidReign commented 4 years ago

I am stuck here too! I removed the sugs code because it becaame redundant, but then the script wasn't even opening the following list after that. If the sugs were retained, then the script shows the following list but obviously conks out cuz there is no Suggestions any more. Any ideas to bypass this?

HariAcidReign commented 4 years ago

Edit: Just remove sugs and replace all ids with the full xpath id and you are done

Baelfire18 commented 4 years ago

Yeah i did the same thing back then, and it works