12
2
Your challenge today is to cheat at badges!
You will build a bot that will connect to a Stack Exchange site, log in as you, visit the /questions page, visit a question, and then visit 9 other questions in the "related" sidebar (because that seems sufficient to count as "activity," and I need to standardize on something).
This bot must go through this process once every day, without any input or actions from the user. It should be able to be left running, and the user should be able to never touch the computer, and the consecutive days count will still be incremented. After "visiting" the site, it must print "visited".
You will assume that the user is using the Stack Exchange-provided OpenID.
The input of the program will be the site URL, SE OpenID email, and SE OpenID password. For example:
https://stackoverflow.com/ doorknob@doorknob.doorknob password
You can input these however you would like.
Your program must work for a minimum of:
- https://stackoverflow.com/
- https://meta.stackoverflow.com/
- https://superuser.com/
- https://codegolf.stackexchange.com/
(Just to make sure it is universal.)
This is code-golf, so the shortest code in bytes will win!
1The minimum I needed to do for activity was visit my user page. No need to read any questions. (But don't change the rules on account of this.) – Kendall Frey – 2014-03-05T14:16:12.923
4Thank goodness the challenge wasn't to create a bot that randomly downvotes 40 questions/answers each day. – None – 2014-03-05T19:21:55.007
1Given the scope of stack exchange, it was only a matter of time until there was a question on exploiting it. – PyRulez – 2014-03-05T21:31:04.010