• 91家纺网本地版本定稿,thread版本,setting文件


    #91家纺网爬虫数据库配置信息
    from peewee import *
    import redis
    #mysql
    #db = MySQLDatabase("91jiafan", host="127.0.0.1", port=3306, user="root", password="123456")
    m_HOST = "127.0.0.1"
    m_USER = "root"
    m_PASSWORD = "123456"
    m_DB = "91jiafan"
    m_PORT = 3306
    m_CHARSET = "utf-8"

    #redis
    #r=redis.Redis(host='58.221.24.242',port='18503',db='4',password=None,decode_responses=True)
    r_HOST = "58.221.24.242"
    r_PORT = "18503"
    r_DB = "4"
    r_PASSWORD = None
    r_DECODE_RESPONSES = True

    #mysql_db 
    db = MySQLDatabase(m_DB,host=m_HOST,port=m_PORT,user=m_USER,password=m_PASSWORD)
    #redis_db
    r=redis.Redis(host=r_HOST,port=r_PORT,db=r_DB,password=None,decode_responses=True)

    COOKIE = ['PHPSESSID=lmgnmbsdt8lct130bl3345gda7,
               UM_distinctid=1730e6d6e76a05-0cddf1170ff694-6353160-1fa400-1730e6d6e77a31,
               pgv_pvi=1983570944,
               pgv_si=s2115758080,
               wx_openid=no_code,
               Hm_lvt_13c2386279bde864df6021d63a1c3e2a=1594103554,1594104599,1594372114,1594374559,
               search_log=591271%2C%E5%9B%9B%E4%BB%B6%E5%A5%97%2C%E7%88%B1%E9%AD%85%E5%9E%AB%E4%B8%9A%2C%E7%88%86%E6%AC%BE%E5%85%A8%E6%A3%89%E8%8A%B1%E8%BE%B9%E5%88%BA%E7%BB%A3%E5%9B%9B%E4%BB%B6%E5%A5%97%E5%BA%8A%E5%8D%95%E6%AC%BE%E5%BA%8A%E7%AC%A0%E6%AC%BE%2C%E5%85%A8%E6%A3%8913372%E6%B7%B7%E6%90%AD%E5%9B%9B%E4%BB%B6%E5%A5%97%2C%E6%AC%A7%E9%9B%85%E6%90%81%E5%AE%B6%E7%BA%BA%E6%96%B0%E6%AC%BE%E5%8A%A0%E5%8E%9A%E4%BF%9D%E6%9A%96%E6%BE%B3%E6%B4%B2%E7%BE%8A%E6%AF%9B%E8%A2%AB%E5%86%AC%E8%A2%AB%E8%A2%AB%E5%AD%90%E8%A2%AB%E8%8A%AF%E6%98%A5%E7%A7%8B%E8%A2%AB%E7%8E%89%E8%89%B2%2C%E5%85%A8%E6%A3%8912868%E5%8D%B0%E8%8A%B1%E5%9B%9B%E4%BB%B6%E5%A5%97%E7%BD%91%E7%BA%A2%E5%B0%8F%E6%B8%85%E6%96%B0%E5%AD%A6%E7%94%9F%E7%BA%AF%E6%A3%89%E4%B8%89%E4%BB%B6%E5%A5%97%2C,
               CNZZDATA1255347764=1610201395-1593674535-%7C1594771237,
               Hm_lpvt_13c2386279bde864df6021d63a1c3e2a=1594774']

    # ODPS
    ODPS_ID = "LTAIPyvGKEmu9cqu"
    ODPS_KEY = "oNaAKmIVqeAqeJ9jnok3PHuv7r5bfo"
    ODPS_PROJECT = "businessdata"
    ODPS_ENDPOINT = "http://service.odps.aliyun.com/api"
  • 相关阅读:
    数组字典
    字符串创建
    不可变数组
    数组
    纯净控制台
    可变字典
    数组Array
    id NSObject instanceType 区别
    可变字符串 插入,删除,替换,赋值
    查询字符串中某部分的字符串
  • 原文地址:https://www.cnblogs.com/dog-and-cat/p/13355232.html
Copyright © 2020-2023  润新知