InstaPy / InstaPy/instapy-quickstart

Got an issue 'attributeError: 'NoneType' object has no attribute 'get'

Offen
#264 14 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
777
Forks
763
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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>

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Beginne mit bot.py und folge dem Login-Pfad in instapy/print_log_writer.py und instapy/util.py, insbesondere getUserData und dem gemeldeten shared_data-Lookup. Reproduziere die Login-Ausgabe und ermittle, warum die ProfilePage-Daten fehlen. Als erledigt gilt die Aufgabe, wenn der Login-Pfad keinen NoneType-Fehler mehr auslöst und der Kontofortschritt gespeichert werden kann.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
backend
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
30/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.