InstaPy / InstaPy/instapy-quickstart

] Failed to get followers count of 'b'myusername'' ~empty list

Ouverte
#269 8 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
777
Forks
763
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

hi

i have installed instapy and emoji. next i have launched follow unfollow script, but i receive alway this message:

..................................................................
INFO [2022-07-26 14:43:49] [sephiroth986] Logged in successfully!
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
INFO [2022-07-26 14:43:49] [sephiroth986] Saving account progress...
INFO [2022-07-26 14:44:41] [sephiroth986] Failed to get followers count of 'b'sephiroth986'' ~empty list
INFO [2022-07-26 14:45:32] [sephiroth986] Failed to get following count of 'b'sephiroth986'' ~empty list
WARNING [2022-07-26 14:45:32] [sephiroth986] Unable to save account progress, skipping data update
b"'NoneType' object has no attribute 'get'"

INFO [2022-07-26 14:45:33] [sephiroth986] Sessional Live Report:
|> No any statistics to show

[Session lasted 2.43 minutes]
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
INFO [2022-07-26 14:45:33] [sephiroth986] Session ended!
ooooooooooooooooooooooooooooooooooooooooooooooooooooooooo

Traceback (most recent call last):
File "C:\Users\orazi\AppData\Local\Programs\Python\Python310\Lib\site-packages\quickstart.py", line 58, in
with smart_run(session):
File "C:\Users\orazi\AppData\Local\Programs\Python\Python310\lib\contextlib.py", line 135, in __enter__
return next(self.gen)
File "C:\Users\orazi\AppData\Local\Programs\Python\Python310\Lib\site-packages\instapy\util.py", line 1983, in smart_run
session.login()
File "C:\Users\orazi\AppData\Local\Programs\Python\Python310\Lib\site-packages\instapy\instapy.py", line 475, in login
self.followed_by = log_follower_num(self.browser, self.username, self.logfolder)
File "C:\Users\orazi\AppData\Local\Programs\Python\Python310\Lib\site-packages\instapy\print_log_writer.py", line 21, in log_follower_num
followed_by = getUserData("graphql.user.edge_followed_by.count", browser)
File "C:\Users\orazi\AppData\Local\Programs\Python\Python310\Lib\site-packages\instapy\util.py", line 501, in getUserData
get_key = shared_data.get("entry_data").get("ProfilePage")
AttributeError: 'NoneType' object has no attribute 'get'

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Start with instapy/util.py at getUserData and print_log_writer.py at log_follower_num, then follow the login path shown in instapy.py. Reproduce the follow/unfollow script and inspect why the follower and following lookups return an empty result. Done means the counts are obtained, account progress is saved, and the NoneType error no longer occurs.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
python
Domaine
api, backend
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.