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

Make RSS feed from VK global search by hashtag (Vkontakte search results) #8

Closed
MurzNN opened this issue Apr 4, 2018 · 7 comments
Closed

Comments

@MurzNN
Copy link

MurzNN commented Apr 4, 2018

Will be good to have ability for create RSS feed from specific search results, as example - results for one or several hastags search, or global search by some text phrase.

Is this possible with current version of script? If no, can you implement generating rss feed from VKontakte search results?

@woxcab
Copy link
Owner

woxcab commented Apr 4, 2018

You can use already existing similar functionality — post filtering by regular expression.
https://github.com/woxcab/vkrss#eng-regex

@MurzNN
Copy link
Author

MurzNN commented Apr 4, 2018

Thanks for quick reply, but does this work with global search? As I understand, now id is required field for query, but when I do a global search - I have no id of user or community.

@MurzNN MurzNN changed the title Make RSS feed from vkontakte hashtag (VK search results) Make RSS feed from VK global search by hashtag (Vkontakte search results) Apr 4, 2018
@woxcab
Copy link
Owner

woxcab commented Apr 4, 2018

Script is oriented to work with concrete wall that's described by single profile/community ID.

VK API allows to use its own search algorithm for concrete wall: wall.search. But is's similar to implemented filtering. So include/exclude can be used for the recent wall posts.

VK API also allows to use global searching by newsfeed.search. But it doesn't return all matching posts — only some unspecified subset of posts that published by opened (for current user) communities/profiles on its opened (for current user) walls, without posts by non-owner users. This API method doesn't fully compatible with this script functionality.

@MurzNN
Copy link
Author

MurzNN commented Apr 4, 2018

Yes, newsfeed.search method is exactly that we need, is it hard to implement support of this method in script?

@woxcab
Copy link
Owner

woxcab commented Apr 4, 2018

I think it isn't so difficult therefore it will be added.

@woxcab woxcab closed this as completed in 9a95585 Apr 4, 2018
woxcab added a commit that referenced this issue Apr 4, 2018
@woxcab
Copy link
Owner

woxcab commented Apr 4, 2018

Added global searching.
Description: https://github.com/woxcab/vkrss#eng-global-search
Example:
index.php?global_search=query&count=150&access_token=XXXXXXXXX

@MurzNN
Copy link
Author

MurzNN commented Apr 4, 2018

So quick! Thanks, I'll test it and report if found any problems.

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

No branches or pull requests

2 participants