application.yaml 1.12 KB
server:
  port: 7654
tortoise:
  connections:
    default:
      engine: tortoise.backends.mysql
      credentials:
        database: spider
        host: 192.168.1.91
        password: Tjlh@2023
        port: 3306
        user: root
        minsize: 10
        maxsize: 200
        connect_timeout: 30
        echo: True
  apps:
    models_read:
      models:
        - app.model.mysql_model
      default_connection: default
  log_queries: true # 启用日志查询

getSpider:
  # 设置设置爬虫定时任务时间间隔 单位是分钟
  interval: 1
urlTemplate:
  #  1 电视剧 2 电影 3 综艺 4 动漫
  - type: 1
    template: "/m/v3/billboard/list?type=DAILY&category=ALL_ANIME&date={date}&attach=gdi&orderTitle=gdi&platformId=0"
  - type: 2
    template: "/m/v3/billboard/list?type=DAILY&category=NETWORK_MOVIE&date={date}&attach=gdi&orderTitle=gdi&platformId=0"
  - type: 3
    template: "/m/v3/billboard/list?type=DAILY&category=NETWORK_VARIETY&date={date}&attach=gdi&orderTitle=gdi&platformId=0"
  - type: 4
    template: "/m/v3/billboard/list?type=DAILY&category=ALL_ANIME&date={date}&attach=gdi&orderTitle=gdi&platformId=0"