News for hackers. Stuff that matters.
Re:Numbers API - An API for interesting facts about numbers by rflrob on Monday March 05, 2012 @02:45PM (#3668020)
It's an API, so I have this code running now:

    for i in xrange(10000):
        print i
        trivia = requests.get('http://numbersapi.com/%d' % i).text
        math = requests.get('http://numbersapi.com/%d/math' % i).text
        if 'boring' in math and ('plain' in trivia or 'boring' in trivia):
            print math, trivia    
            break
        time.sleep(2)

There are no comments on this comment yet.