8
0
Write a program/function/script that takes a natural number i from 1 to 10 as input and outputs the URL of the Question with the i th hottest question on the Code Golf Portal
The ordering should be like in https://codegolf.stackexchange.com/?tab=hot.
For example:
input 1
output https://codegolf.stackexchange.com/questions/127047/the-spain-license-plates-game
(at the point of this edit)
There are no strong restrictions to the output, as long as the url can be reasonably retrieved. Valid outputs include strings, console printing etc.
It's Code Golf, so shortest code in Bytes wins.
Notes
If your program automatically opens a browser with the webpage, it counts as valid output and is totally cool.
If your program does not retrieve the ranking from current information (i.e. hardcoding the links), it is not valid.
The contest ends with the end of June.
As questioned: The indexing must be 1 based, ie: the input 1 must return the the first site of the hottest questions.
Comment
I hope this question is not too clickbaity, as the stack exchange editor program was mocking me for the title. Originally I planned this challenge with Youtube trends, where it would haven been more fitting.
1Re: Stack Exchange mocking you for the question title, it's just triggering on the word
you
specifically. The assumption made by the software is that if you're asking people what they specifically think about something, then the question is probably going to be closed as primarily opinion-based (as if the question were factually-based, it wouldn't matter who you asked). Of course, this simple heuristic has a lot of false positives. – None – 2017-06-18T01:57:17.757I'm surprised the answers aren't using URL shorteners: v.ht/b6QI
– Engineer Toast – 2017-06-19T13:05:23.980@EngineerToast They're not usually allowed. – Esolanging Fruit – 2017-09-20T18:24:28.513
@Challenger5 Indeed. I should probably re-read that list...
– Engineer Toast – 2017-09-20T19:09:25.493