예제 #1
0
def TweetUnAnsweredCppQuestions():
    s = StackExchange()
    todate = int(time.time())
    fromdate = todate - 7200    # last 2-hours
    questions = s.get_noanswered_questions(tagged='c++',
                                           fromdate=fromdate,
                                           todate=todate,
                                           pagesize=15)
    _tweet('CppSO', questions, 'unanswered',
           'Cpp', 'StackOverflow')
예제 #2
0
def TweetFeaturedJavaScriptQuestions():
    s = StackExchange()
    todate = int(time.time())
    fromdate = todate - 28800       # last 8-hours
    questions = s.get_featured_questions(tagged='javascript',
                                         fromdate=fromdate,
                                         todate=todate,
                                         pagesize=15)
    _tweet('SOJavaScript', questions, 'featured',
           'JavaScript', 'StackOverflow')
예제 #3
0
def TweetUnAnsweredJavaScriptQuestions():
    s = StackExchange()
    todate = int(time.time())
    fromdate = todate - 1200        # last 1-hour
    questions = s.get_noanswered_questions(tagged='javascript',
                                           fromdate=fromdate,
                                           todate=todate,
                                           pagesize=15)
    _tweet('SOJavaScript', questions, 'unanswered',
           'JavaScript', 'StackOverflow')
예제 #4
0
def TweetUnAnsweredHadoopQuestions():
    s = StackExchange()
    todate = int(time.time())
    fromdate = todate - 21600   # last 6-hours
    questions = s.get_noanswered_questions(tagged='hadoop',
                                           fromdate=fromdate,
                                           todate=todate,
                                           pagesize=15)
    _tweet('HadoopSO', questions, 'unanswered',
           'Hadoop', 'StackOverflow')
예제 #5
0
def TweetFeaturedCSharpQuestions():
    s = StackExchange()
    todate = int(time.time())
    fromdate = todate - 86400       # last 24-hours
    questions = s.get_featured_questions(tagged='c#',
                                         fromdate=fromdate,
                                         todate=todate,
                                         pagesize=15)
    _tweet('CSharpSO', questions, 'featured',
           'CSharp', 'StackOverflow')
예제 #6
0
def TweetFeaturedCppQuestions():
    s = StackExchange()
# NOTE: for now, do not provide fromdate and todate
#       for featured question on 'C++'; Low traffic
#    todate = int(time.time())
#    fromdate = todate - 86400       # last 24-hours
    questions = s.get_featured_questions(tagged='c++',
#                                         fromdate=fromdate,
#                                         todate=todate,
                                         pagesize=15)
    _tweet('CppSO', questions, 'featured',
           'Cpp', 'StackOverflow')
예제 #7
0
def TweetFeaturedHadoopQuestions():
    s = StackExchange()
    questions = s.get_featured_questions(tagged='hadoop',
                                         pagesize=15)
    _tweet('HadoopSO', questions, 'featured',
           'Hadoop', 'StackOverflow')