unitaryfund / metriq-app

Web app for Metriq
https://metriq.info
Apache License 2.0
27 stars 19 forks source link

Show Scirate metrics #159

Open nathanshammah opened 3 years ago

nathanshammah commented 3 years ago

Some metric that could be used is the Scirate "Scited" count. This could be also used for grouping in some leaderboard.

WrathfulSpatula commented 3 years ago

I have a user story, for this. We'll discuss it at the Friday meeting, to determine priority. My indication that this can be achieved, at all, is the existence of a Scirate data scraper package on PyPi: https://pypi.org/project/scirate/

vprusso commented 3 years ago

Oh hey. I wrote that package :P

WrathfulSpatula commented 3 years ago

Sorry, my bad for not noticing! But, then I have questions.

Do you know if Scirate has CORS enabled? It wouldn't block a Python package, if they didn't, but it would block our web app, in any standard browser.

vprusso commented 3 years ago

That's a good question. I can't say I would know definitively as to whether or not CORS is enabled on Scirate or not. Combing through the GitHub repo for Scirate itself, there doesn't appear to be any mention of it (although, of course, that's not necessarily an indication that it is not present either).

We could reach out to the developers who are quite responsive to ask directly as one option. The other point here is more of a question if the Scirate Python client is able to do the heavy lifting of obtaining the information, would we still not be able to display the information that is extracted on our domain? I'm wondering if there are workarounds with the present tools that exist.

nathanshammah commented 3 years ago

It could also be a feature request for Scirate devs.