kovinevmv / getcontact

Find info about user by phone number using GetContact API
MIT License
437 stars 74 forks source link

Поиск не работает. #54

Closed aweone closed 2 years ago

aweone commented 3 years ago

Поиск не работает.

Ставил либы как в ридми, ошибок не заметил

Запустил с помощью python3 ./src/main.py -v -p +79291045310

Запускал на arch linux

Снизу логи, видел там строку о ошибке аунтефикации, может в этом дело?

Логи [2021-03-21 23:25:39] Call print_information_by_phone with phone +79291045310 [2021-03-21 23:25:39] Call get_information_by_phone with phone +79291045310 [2021-03-21 23:25:39] Call get_name_by_phone with phoneNumber +79291045310 [2021-03-21 23:25:39] Call _send_post with url: https://pbssrv-centralevents.com/v2.8/search data: {"data": "5bdkIcEXuJjCNtYojDyP+yJBiUlFPbojTgprZqX5lnTSa8AZNns/njzEZt2TVmdqlsQvbznsX28AJ0y4D00p6dIwQULwOW81UHfyqKHdchkHQ8lA2hCW4mL6hHIAsh5uLMlFdCEX6mQ0HPGIs0blJ1HE6Es7CWTSRhd1WjVznQoXDZsy/65DWR8ytxDoY7cv"} [2021-03-21 23:25:39] Call _parse_response with response: {"data":"+yZyseKMY24rJ+1d2LowBGT2OdeVMZyxEMpfMSoXvAE09fKWyrjnRzFNwdRZJ0X9LvzK\/O0fsPFm63M\/TL1\/rxoSXH1JiW69qzrEbZ9hX6SoeucKT+rZbuhiYN45r2KMzZwKOXHuTF1AtheKTTsDrMc5Vbe0DwtNnR\/UkqFbg2ethtOIrNoIsPfc+bJiC5Fz"} [2021-03-21 23:25:39] Not correct answer from server. [2021-03-21 23:25:39] Response: +yZyseKMY24rJ+1d2LowBGT2OdeVMZyxEMpfMSoXvAE09fKWyrjnRzFNwdRZJ0X9LvzK/O0fsPFm63M/TL1/rxoSXH1JiW69qzrEbZ9hX6SoeucKT+rZbuhiYN45r2KMzZwKOXHuTF1AtheKTTsDrMc5Vbe0DwtNnR/UkqFbg2ethtOIrNoIsPfc+bJiC5Fz [2021-03-21 23:25:39] Response decrypted: {'meta': {'requestId': '172-31-8-55-REQ-60578fa39ba5d', 'httpStatusCode': 403, 'errorMessage': 'Authentication failed.', 'errorCode': '403001'}} [2021-03-21 23:25:39] Call get_tags_by_phone with phoneNumber +79291045310 [2021-03-21 23:25:39] Call _send_post with url: https://pbssrv-centralevents.com/v2.8/number-detail data: {"data": "5bdkIcEXuJjCNtYojDyP+0agXUrEbebGlSikt/i6YtcCMw31M0PnnBdPa2QU6/NModIfdAdz0WF26OvGJ9oTZGqQHfpj22J48fGrBruJtatNRhswONfWm1F93Fd/XExzly7Rmh7LnBZ5iMecizJyGET3TYF2fbMm4gQbLJE7QhLvZo4AuiWjapeRm+0A8tPP"} [2021-03-21 23:25:40] Call _parse_response with response: {"data":"+yZyseKMY24rJ+1d2LowBDs8ELgMu8ylNBxeQ+p4z5lJDqWeeAtarB+13UcHKaYBHdi7QeGvU9SxVB1EB9JUpST6\/KZVj\/JepDnJN74\/GpQVuJMXz2vJs+95AOEvRVQqgIFVS5kw8zesKOl+vO0j\/tpX3U06hDvEYvWWS\/GlxZpimoh7IppbwynrPDamXGW7"} [2021-03-21 23:25:40] Not correct answer from server. [2021-03-21 23:25:40] Response: +yZyseKMY24rJ+1d2LowBDs8ELgMu8ylNBxeQ+p4z5lJDqWeeAtarB+13UcHKaYBHdi7QeGvU9SxVB1EB9JUpST6/KZVj/JepDnJN74/GpQVuJMXz2vJs+95AOEvRVQqgIFVS5kw8zesKOl+vO0j/tpX3U06hDvEYvWWS/GlxZpimoh7IppbwynrPDamXGW7 [2021-03-21 23:25:40] Response decrypted: {'meta': {'requestId': '172-31-4-106-REQ-60578fa442498', 'httpStatusCode': 403, 'errorMessage': 'Authentication failed.', 'errorCode': '403001'}} [2021-03-21 23:25:40] Call _print_beauty_output with data {'name': None, 'phoneNumber': '+79291045310', 'country': 'RU', 'displayName': 'Not Found', 'profileImage': None, 'email': None, 'is_spam': False, 'tags': []} Phone: +79291045310 User: Not Found

kovinevmv commented 3 years ago

Здравствуйте.

Я вижу 2 варианта, почему может возникнуть данная проблема:

В ближайшее время никак не смогу посмотреть, в чем может быть дело.

вс, 21 мар. 2021 г. в 21:31, Paul @.***>:

Поиск не работает.

Ставил либы как в ридми, ошибок не заметил

Запустил с помощью python3 ./src/main.py -v -p +79291045310

Запускал на arch linux

Снизу логи, видел там строку о ошибке аунтефикации, может в этом дело?

Логи [2021-03-21 23:25:39] Call print_information_by_phone with phone +79291045310 [2021-03-21 23:25:39] Call get_information_by_phone with phone +79291045310 [2021-03-21 23:25:39] Call get_name_by_phone with phoneNumber +79291045310 [2021-03-21 23:25:39] Call _send_post with url: https://pbssrv-centralevents.com/v2.8/search data: {"data": "5bdkIcEXuJjCNtYojDyP+yJBiUlFPbojTgprZqX5lnTSa8AZNns/njzEZt2TVmdqlsQvbznsX28AJ0y4D00p6dIwQULwOW81UHfyqKHdchkHQ8lA2hCW4mL6hHIAsh5uLMlFdCEX6mQ0HPGIs0blJ1HE6Es7CWTSRhd1WjVznQoXDZsy/65DWR8ytxDoY7cv"} [2021-03-21 23:25:39] Call _parse_response with response: {"data":"+yZyseKMY24rJ+1d2LowBGT2OdeVMZyxEMpfMSoXvAE09fKWyrjnRzFNwdRZJ0X9LvzK/O0fsPFm63M/TL1/rxoSXH1JiW69qzrEbZ9hX6SoeucKT+rZbuhiYN45r2KMzZwKOXHuTF1AtheKTTsDrMc5Vbe0DwtNnR/UkqFbg2ethtOIrNoIsPfc+bJiC5Fz"} [2021-03-21 23:25:39] Not correct answer from server. [2021-03-21 23:25:39] Response: +yZyseKMY24rJ+1d2LowBGT2OdeVMZyxEMpfMSoXvAE09fKWyrjnRzFNwdRZJ0X9LvzK/O0fsPFm63M/TL1/rxoSXH1JiW69qzrEbZ9hX6SoeucKT+rZbuhiYN45r2KMzZwKOXHuTF1AtheKTTsDrMc5Vbe0DwtNnR/UkqFbg2ethtOIrNoIsPfc+bJiC5Fz [2021-03-21 23:25:39] Response decrypted: {'meta': {'requestId': '172-31-8-55-REQ-60578fa39ba5d', 'httpStatusCode': 403, 'errorMessage': 'Authentication failed.', 'errorCode': '403001'}} [2021-03-21 23:25:39] Call get_tags_by_phone with phoneNumber +79291045310 [2021-03-21 23:25:39] Call _send_post with url: https://pbssrv-centralevents.com/v2.8/number-detail data: {"data": "5bdkIcEXuJjCNtYojDyP+0agXUrEbebGlSikt/i6YtcCMw31M0PnnBdPa2QU6/NModIfdAdz0WF26OvGJ9oTZGqQHfpj22J48fGrBruJtatNRhswONfWm1F93Fd/XExzly7Rmh7LnBZ5iMecizJyGET3TYF2fbMm4gQbLJE7QhLvZo4AuiWjapeRm+0A8tPP"} [2021-03-21 23:25:40] Call _parse_response with response: {"data":"+yZyseKMY24rJ+1d2LowBDs8ELgMu8ylNBxeQ+p4z5lJDqWeeAtarB+13UcHKaYBHdi7QeGvU9SxVB1EB9JUpST6/KZVj/JepDnJN74/GpQVuJMXz2vJs+95AOEvRVQqgIFVS5kw8zesKOl+vO0j/tpX3U06hDvEYvWWS/GlxZpimoh7IppbwynrPDamXGW7"} [2021-03-21 23:25:40] Not correct answer from server. [2021-03-21 23:25:40] Response: +yZyseKMY24rJ+1d2LowBDs8ELgMu8ylNBxeQ+p4z5lJDqWeeAtarB+13UcHKaYBHdi7QeGvU9SxVB1EB9JUpST6/KZVj/JepDnJN74/GpQVuJMXz2vJs+95AOEvRVQqgIFVS5kw8zesKOl+vO0j/tpX3U06hDvEYvWWS/GlxZpimoh7IppbwynrPDamXGW7 [2021-03-21 23:25:40] Response decrypted: {'meta': {'requestId': '172-31-4-106-REQ-60578fa442498', 'httpStatusCode': 403, 'errorMessage': 'Authentication failed.', 'errorCode': '403001'}} [2021-03-21 23:25:40] Call _print_beauty_output with data {'name': None, 'phoneNumber': '+79291045310', 'country': 'RU', 'displayName': 'Not Found', 'profileImage': None, 'email': None, 'is_spam': False, 'tags': []} Phone: +79291045310 User: Not Found

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kovinevmv/getcontact/issues/54, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFFJULIIOOMY5IZYW3SXIALTEY3R3ANCNFSM4ZR2HMFA .

aweone commented 3 years ago

а где можно создать токен? где-то в самом приложении гетконтакт?

kovinevmv commented 3 years ago

@aweone, https://github.com/kovinevmv/getcontact#how-to-get-keys