@@ -0,0 +1,1376 @@
+# -*- coding: utf-8 -*-%0A%0Aimport urllib2%0Aimport json%0Aimport time%0A%0Aimport sys%0A%0Areload(sys)%0Asys.setdefaultencoding('utf8')%0A%0Agraph_url = %22https://graph.facebook.com/v2.5/%22%0A%0Adef json_message():%0A%0A    json_setting = ''%0A%0A    with open('../setting.json', 'r') as json_file:%0A        json_setting = json.load(json_file)%0A%0A    return json_setting if json_setting == %22%22 else json_setting%5B'credential'%5D%5B'facebook'%5D%0A%0Adef format_url(page_id = %22%22, query = %22%22):%0A    credential = json_message()%0A    return %22%25s%25s%25s&access_token=%25s%22 %25 (graph_url, page_id, query, credential%5B'access_token'%5D)%0A%0Adef get_object(q=%22%22):%0A    pass%0A%0A%0Aif '__main__' == __name__:%0A    pages = %5B'BulgeHd', 'Lickourdisplay', 'trasherbangkok', 'haruehun.airry', 'Toodsdiary', 'NeeNongNa', 'overtheeyebrow', 'cutegaystory', 'gaythaigointer', 'koorakgay', 'iamgaytherabbit', 'SingleGay.th', 'GthaiMovie', 'gaybottom'%5D%0A%0A    for page in pages:%0A        p_url = format_url(page_id = page, query = '?fields=feed%7Bmessage,link,comments%7D') %0A        page_request = urllib2.urlopen(p_url)%0A        page_content_text = page_request.read()%0A        page_content = json.loads(page_content_text)%0A%0A        for message in page_content%5B'feed'%5D%5B'data'%5D:%0A            with open('message.txt', 'aw') as m:%0A                if 'message' in message:%0A                    m.write(%22%25s%5Cn%22 %25 message%5B'message'%5D)%0A%0A                m.close()%0A%0A        time.sleep(30)%0A

Update reader