How to retrieve the “Related tags” of a tag using py-stackexchange?

感情迁移 提交于 2020-01-03 04:58:10

问题


Step 1: I would like to retrieve all the related tags of a particular tag using Py-stackexchange, much like what is accomplished here.

Step 2: I would like to find the intersection between two lists of related tags.

I am StackApp-agnostic, as long as it works!

RELATED: Py-StackExchange filter by tag


回答1:


Since Py-StackExchange does not support V2.0 yet, I struggled with Stackpy, but no luck there either (it could well be my incompetence too).

However, SEAPI is clean, efficient and was a breeze! And it uses the awesome Requests:HTTP for Humans package to boot. It would be great if it incorporated authentication using requests_oauthlib as well.

Look here for some sample code that the author of SEAPI has provided.



来源:https://stackoverflow.com/questions/20846479/how-to-retrieve-the-related-tags-of-a-tag-using-py-stackexchange

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!