#/bin/env python
__author__ = 'zhuangyongyao'

# maya
MY_PIC_SITE = 'maya'



src_dict = {
    'maya': {
        'domain': 'klmaya.info',
        'login_url': 'http://a.klmaya.info/logging.php?action=login',
        'login_form' : {
            'formhash' : '4ea20abd',
            'referer' : 'http://a.klmaya.info/index.php',
            'loginfield' : 'username',
            'username':'togetav',
            'password':'<PASSWORD>',
            #'questionid':'0',
            #'answer':'',
            'cookietime':'2592000',
            #'loginmode':'',
            #'styleid':'',
         },
        #'username' : 'togetav',
        #'password' : '<PASSWORD>',
        'urls' : [
            'forumdisplay.php?fid=5&page=1' #tupatianxia
            #'forumdisplay.php?fid=5&page=3', #tupatianxia
            #'forumdisplay.php?fid=5&page=4', #tupatianxia
            #'forumdisplay.php?fid=5&page=5', #tupatianxia
            #'forumdisplay.php?fid=86', #zouguangtoupai
            #'forumdisplay.php?fid=53', #yazhoutietu
            #'forumdisplay.php?fid=59', #wangyouzipai
            #'forumdisplay.php?fid=60', #oumeitietu
         ],
        'picpage_xpath' : '//td[@class="f_title"]/a[1]/@href',
        'pic_xpath': '//div[@class="t_msgfont"][1]/img/@src',
        'text_xpath': '//tr[@class="header"]/td/text()',
        #'time_xpath': '//table[@class="t_msg"]/text()',
        #'next_xpath': '//a[@class="nxt"]/@href',
        #'maingate_xpath': '//div[@class="info"]/a/@href',
    },
}

#/bin/env python
__author__ = 'zhuangyongyao'

# maya
MY_PIC_SITE = 'maya'



src_dict = {
    'maya': {
        'domain': 'klmaya.info',
        'login_url': 'http://a.klmaya.info/logging.php?action=login',
        'login_form' : {
            'formhash' : '4ea20abd',
            'referer' : 'http://a.klmaya.info/index.php',
            'loginfield' : 'username',
            'username':'togetav',
            'password':'<PASSWORD>',
            #'questionid':'0',
            #'answer':'',
            'cookietime':'2592000',
            #'loginmode':'',
            #'styleid':'',
         },
        #'username' : 'togetav',
        #'password' : '<PASSWORD>',
        'urls' : [
            'forumdisplay.php?fid=5&page=1' #tupatianxia
            #'forumdisplay.php?fid=5&page=3', #tupatianxia
            #'forumdisplay.php?fid=5&page=4', #tupatianxia
            #'forumdisplay.php?fid=5&page=5', #tupatianxia
            #'forumdisplay.php?fid=86', #zouguangtoupai
            #'forumdisplay.php?fid=53', #yazhoutietu
            #'forumdisplay.php?fid=59', #wangyouzipai
            #'forumdisplay.php?fid=60', #oumeitietu
         ],
        'picpage_xpath' : '//td[@class="f_title"]/a[1]/@href',
        'pic_xpath': '//div[@class="t_msgfont"][1]/img/@src',
        'text_xpath': '//tr[@class="header"]/td/text()',
        #'time_xpath': '//table[@class="t_msg"]/text()',
        #'next_xpath': '//a[@class="nxt"]/@href',
        #'maingate_xpath': '//div[@class="info"]/a/@href',
    },
}

#/bin/env python # maya #'questionid':'0', #'answer':'', #'loginmode':'', #'styleid':'', #'username' : 'togetav', #'password' : '<PASSWORD>', #tupatianxia #'forumdisplay.php?fid=5&page=3', #tupatianxia #'forumdisplay.php?fid=5&page=4', #tupatianxia #'forumdisplay.php?fid=5&page=5', #tupatianxia #'forumdisplay.php?fid=86', #zouguangtoupai #'forumdisplay.php?fid=53', #yazhoutietu #'forumdisplay.php?fid=59', #wangyouzipai #'forumdisplay.php?fid=60', #oumeitietu #'time_xpath': '//table[@class="t_msg"]/text()', #'next_xpath': '//a[@class="nxt"]/@href', #'maingate_xpath': '//div[@class="info"]/a/@href',