Dear All,
I would be interested in knowing whether it is possible to search for a specific tag on the Biostars API. The official documentation (https://www.biostars.org/info/api/) contains information about searching for a particular post. However this query based on a specific post ID so it supposes that you know the ID itself. I am looking for a solution to check all the posts related to a tag (especially tag=CRISPR). Any idea would be highly appreciated.
Thanks :)
Yep; I know about this option. However the problem here is that it will return only with the tags used and not the posts that are associated with a particular tag.
Right, that's true. One way to do that would be to get the HTML output of https://www.biostars.org/tag/crispr/ and search it for the first 50
/p/[0-9]+/
patterns, like so:The "first 50" hack can be avoided if you can use JS on the browser or a more advanced command line JS parsing option (I'm not conversant with command line JS parsing).
For example, on Firefox, I can get the same output using:
That is a cool workaround and exactly what I was looking for! Thank you very much! :-)
No problem - happy to help!