Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VK datasource no longer working #461

Open
dale-wahl opened this issue Oct 17, 2024 · 0 comments
Open

VK datasource no longer working #461

dale-wahl opened this issue Oct 17, 2024 · 0 comments

Comments

@dale-wahl
Copy link
Member

Describe the bug
The library vk_api will no longer authenticate and thus cannot communicate with VK's API. The library appears unmaintained and has not had a release since June 2022.

Proposed solution
There is another promising library, vkbottle that appears to be maintained and functions. It offloads login to obtain a token which can be done on sites such as https://vkhost.github.io/. User logs in there and can copy the token from the result URL to use with 4CAT or other apps.

Our existing processor searches the news feed for posts. It appears that endpoint no longer works with VK's API using the user's token. It returns the error "Unknown method passed" (testable here). Instead, you need an application token created through an application at VK. The user tokens do appear to work on other pages, so the processor could currently be modified to extract information form a list of VK URLs or could be used to collect posts from specific pages, communities, groups, etc. With the newsfeed search available if a app token is obtained.

I am going to modify the current processor to use an app token and this new library.

Oh, side-note: this package only works with later versions of python (failed in 3.9, but working in 3.11).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant