6
1
I'm a narcissist. (Not Really)
I'm also very lazy... (Not Really)
So I want to know the score of this question, and how many people have viewed it.
But I'm too lazy to check myself...
Challenge
Your challenge is to output the score of this question, and how many views there are. No input may be taken, and output may be given as pretty much anything as long as it's clear where the two numbers are outputted. So, all of the following are valid:
[1, 1]
score 1, 1 view
1 1
1, 1
1........1
HELLO1WORLD1
Note that pluralization matters, so "1 views" is invalid output.
I am very lazy, so I want this code to be as short as possible.
You may assume that there is an internet connection.
You may want to use the SE API. For reference, this question has id 111115.
Rules
No URL shorteners are allowed.
You may assume that votes are not expanded (for users below 1000 rep: users with at least 1000 rep can click on the score of a post to see the upvotes and downvotes individually. You may assume that this was not done).
Scoring
This is a code-golf challenge, so the shortest valid submission by March 14th (Pi Day) wins! Happy golfing!
Related: Stack Exchange Vote Counter
– Dennis – 2017-02-24T02:18:32.360@Dennis Hm. I did not find that in my search. Strange. Also, I have a question that you may be able to answer. Does the API tell you how many upvotes I have, or just the overall score? – HyperNeutrino – 2017-02-24T02:20:17.760
Is usage of the SE API required? I don't see how it's "definitely" necessary (for example, one could scrape and parse the HTML of this page). – Doorknob – 2017-02-24T02:20:43.980
@Doorknob That is true. Also, thanks for correcting my code; I forgot about being politically correct (I'm rather uncareful about that). – HyperNeutrino – 2017-02-24T02:21:17.237
@HyperNeutrino I can't find the "views" attribute on the SE api, so I don't think it's even possible to solve this with the SE api. – NoOneIsHere – 2017-02-24T02:21:30.897
@NoOneIsHere
JSON.items[0].view_count
. – HyperNeutrino – 2017-02-24T02:23:04.460Related. – R. Kap – 2017-02-24T02:27:34.233
@HyperNeutrino I don't think likes is in the dump (after viewing the right dump). – NoOneIsHere – 2017-02-24T02:33:56.530
@NoOneIsHere Yeah, I can't seem to find it. You can theoretically get it, but only if you have over 1000 rep, and I don't think it's allowed to make questions only people with enough rep can answer, so I'm going to change that. – HyperNeutrino – 2017-02-24T02:36:48.350
@NoOneIsHere I've fixed the specs, so you only need to give me the overall score. It should be possible now. – HyperNeutrino – 2017-02-24T02:38:50.703
@HyperNeutrino Thanks, I posted my answer! – NoOneIsHere – 2017-02-24T02:40:25.183
Can we use http://s.tk/ ?
– zeppelin – 2017-02-24T11:07:24.500@zeppelin I'm going to say no, because that's a URL shortener, but if you have a solution that can use that, I'd like to see (you can ping me on The Nineteenth Byte).
– HyperNeutrino – 2017-02-24T14:14:08.430Additionally, I'm not sure s.tk works because you can't go to a specific question with it, but again, I'm not sure. – HyperNeutrino – 2017-02-24T14:14:38.013