Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- update to http://pastebin.com/H4T4SJbV
- This URL gets the poll results for id 55216, the original poll that 4chan was targetting.
- http://nvcdn.msnbc.com/_api/poll/getPoll?pollId=55216&callback=_jqjsp&_1416964348156=
- The following data is gleened from the URL to get poll results:
- _jqjsp({"data":{"answers":[{"optionId":229286,"votes":"723450","title":"Yes","weight":"-1"},{"optionId":229287,"votes":"183396","title":"No","weight":"-1"}],"closeDate":1732287060,"question":"Did the grand jury make the right decision in the Ferguson case?","allowComments":false,"threadId":null,"ad":"<div class=\"doubleclickimage_adtype\" style=\"height:30px; width=240px;\"><a target=\"_blank\" href=\"http:\/\/pubads.g.doubleclick.net\/gampad\/jump?iu=2620\/msnbc\/poll&sz=240x30&t=poll%3D55216&c=1604956501\"><img src=\"http:\/\/pubads.g.doubleclick.net\/gampad\/ad?iu=2620\/msnbc\/poll&sz=240x30&t=poll%3D55216&c=1604956501\" \/><\/a> <\/div>","params":null,"author":{"domainName":"danielle-brennan","displayName":"Danielle Brennan","avatar":"http:\/\/m.static.newsvine.com\/servista\/imagesizer?file=danielle-brennanCACEB193-0800-B978-7D56-7D0139B78B1B.jpg&width=30","url":"http:\/\/danielle-brennan.newsvine.com\/_action\/user\/extendedSection?affiliate=msnbc.com","type":"user","membership":"","memberSince":1237532400,"numSeeds":0,"numComments":0,"numArticles":0,"watchers":"0","staff":"NBC"},"tag":""},"status":"success","statusMessage":null})
- You can see the question is: Did the grand jury make the right decision in the Ferguson case?
- The code to vote NO in this poll is:
- function vote() {
- var xmlhttp = new XMLHttpRequest();
- xmlhttp.open("GET","http://secure.today.com/_api/poll/vote?pollId=55216&pollAnswer=229287&callback=_jqsp",true);
- xmlhttp.send();
- }
- setInterval(vote,1000);
- Otherwise use the same instructions from http://pastebin.com/H4T4SJbV
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement