예제 #1
0
def LogFunction():
    Log.LogFunction_day_store_APP(app_name, package_name,
                                  category_name, provider_info, str(down_cnt),
                                  str(review_cnt), review_score_info,
                                  str(review_num[1]), str(review_num[2]),
                                  str(review_num[3]), str(review_num[4]),
                                  str(review_num[5]), update_name, site,
                                  developer_info, dev_info)
예제 #2
0
def LogFunction_site():
    Log.LogFunction_site_id(site_id, smart_id)
예제 #3
0
def LogFunction_pro():
    Log.LogFunction_provider_id(pproid, smart_id)
예제 #4
0
import logging.handlers


def LogFunction_pro():
    Log.LogFunction_provider_id(pproid, smart_id)


def LogFunction_site():
    Log.LogFunction_site_id(site_id, smart_id)


if __name__ == "__main__":
    print("Google PlayStore Pasering Program Start...")

    db = DB()
    Log = Log()
    container = Container()
    appInfo = AppInfo()
    try:
        Log.Log_updateProvider_Start()
        db.connect()

        # date
        dt = datetime.now()
        proc_day = dt.strftime('%Y/%m/%d %H:%M:%S')
        yesterday = date.today() - timedelta(1)
        start_day = (date.today() - timedelta(7)).strftime('%Y%m%d')
        access_day = dt.strftime('%Y%m%d')
        print(start_day + " ~ " + access_day)

        # 오늘 기준 new app get
예제 #5
0
def LogFunction_smart_id():
    Log.LogFunction_smart_id(smart_id, package_name)
예제 #6
0
def LogFunction():
    log_message_list = app_name, smart_id, package_name, category_name, provider_info, str(down_cnt), str(
        review_cnt), review_score_info, str(review_num[1]), str(review_num[2]), str(review_num[3]), str(
        review_num[4]), str(review_num[5]), update_name, site, developer_info, dev_info, site_name
def LogFunction_smart_id():
    Log.LogFunction_smart_id(smart_id, package_name)

if __name__ == "__main__":
    print("Google PlayStore Pasering Program Start...")
    logger = logging.getLogger(__name__)
    formatter = logging.Formatter('[%(asctime)s][%(levelname)s|%(filename)s:%(lineno)s] >> %(message)s')
    db = DB()
    driver = chromeDriver()
    container = Container()
    appInfo = AppInfo()
    Log = Log()
    try:
        db.connect()
        # date
        dt = datetime.now()
        proc_day = dt.strftime('%Y/%m/%d %H:%M:%S')
        yesterday = date.today() - timedelta(1)
        start_day = (date.today() - timedelta(7)).strftime('%Y%m%d')
        access_day = dt.strftime('%Y%m%d')
        print(start_day + " ~ " + access_day)
        Log.Log_newProvider_Start()

        # date format check
        #dateFormat = container.getDateFormat(db)
        #print(dateFormat)
        # ORA-01861 date 포맷 변환하여 오류 해결
예제 #7
0
from bs4 import BeautifulSoup
from network.webDriver import chromeDriver
import logging.handlers
from Module.DBconnect import DB
from Module.DBContainer import Container
from datetime import date, timedelta, datetime
from Module.LogFunction import Log

if __name__ == "__main__":
    print("Google PlayStore Pasering Program Start...")

    db = DB()
    container = Container()
    WD = chromeDriver()
    Log = Log()
    try:
        Log.Log_ranking_Start()
        dt = datetime.now()
        db.connect()
        proc_day = dt.strftime('%Y/%m/%d %H:%M:%S')
        yesterday = date.today() - timedelta(1)
        access_day = dt.strftime('%Y%m%d')

        URL_Pack = container.getURLElem(db)
        # db select한 결과값 list
        url_list = {}
        i = 0
        for info in URL_Pack:
            i = i + 1
            url_list[i] = list(info)
예제 #8
0
                                  category_name, provider_info, str(down_cnt),
                                  str(review_cnt), review_score_info,
                                  str(review_num[1]), str(review_num[2]),
                                  str(review_num[3]), str(review_num[4]),
                                  str(review_num[5]), update_name, site,
                                  developer_info, dev_info)


# ( 일간 ) tb_smart_playstore_app_rank 에 들어가있는 모든 app 파싱
if __name__ == "__main__":
    print("Google PlayStore Pasering Program Start...")
    db = DB()
    driver = chromeDriver()
    container = Container()
    appInfo = AppInfo()
    Log = Log()
    try:
        dt = datetime.now()
        db.connect()
        proc_day = dt.strftime('%Y/%m/%d %H:%M:%S')
        yesterday = date.today() - timedelta(1)
        access_day = dt.strftime('%Y%m%d')
        Log.Log_Daystoreapp_Start()
        Package_list = container.getRankElem(db, access_day)
        # db select한 결과값 list
        detailList = {}
        s = 0
        for smart_info in Package_list:
            s = s + 1
            detailList[s] = list(smart_info)