InstaPy / InstaPy/instapy-quickstart
Got an issue 'attributeError: 'NoneType' object has no attribute 'get'
- Lingua principale
- Python
- Stelle
- 777
- Fork
- 763
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
here's the full code:
PS C:\Users\a\Desktop> py bot.py
InstaPy Version: 0.6.16
._. ._. ._. ._. ._. ._. ._. ._. ._.
Workspace in use: "C:/Users/a/InstaPy"
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
INFO [2022-06-11 19:23:28] [itayabergell] Session started!
oooooooooooooooooooooooooooooooooooooooooooooooooooooo
INFO [2022-06-11 19:23:36] [i] - Cookie file for user '...' loaded...
..................................................................
INFO [2022-06-11 19:24:03] Logged in successfully!
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
INFO [2022-06-11 19:24:03] [i] Saving account progress...
INFO [2022-06-11 19:24:56] [ Failed to get followers count of 'b'...'' ~empty list
INFO [2022-06-11 19:25:46] [] Failed to get following count of 'b'...'' ~empty list
WARNING [2022-06-11 19:25:46] [...] Unable to save account progress, skipping data update
b"'NoneType' object has no attribute 'get'"
Traceback (most recent call last):
File "C:\Users\\Desktop\bot.py", line 9, in
session.login()
File "C:\Users\\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י\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\\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'
PS C:\Users\a\Desktop>
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Start with bot.py and follow the login path into instapy/print_log_writer.py and instapy/util.py, especially getUserData and the reported shared_data lookup. Reproduce the login output and determine why the ProfilePage data is absent. Done means the login path no longer raises the NoneType error and account progress can be saved.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- backend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 30/100