跳到内容
当前位置:首页>Excel>Python爬取抖音官方热榜,还能存Excel?

Python爬取抖音官方热榜,还能存Excel?

  • 2026-11-10 04:55:21
Python爬取抖音官方热榜,还能存Excel?
OK了兄弟们,今天的主要内容是使用python和requests,pandas爬取抖音热榜的数据,话不多说,下面见

一、为什么要抓取抖音热榜?

对于新媒体运营、市场分析师或内容创作者来说,抖音热榜就像是一个“流量风向标”。通过分析热榜,我们可以:

  • 追踪热点:第一时间了解大众正在关注什么。

  • 内容选题:为创作提供灵感,跟上潮流趋势。

  • 数据研究:分析话题的热度值、讨论量,洞察传播规律。

  • 竞品分析:观察竞争对手的话题表现

二、工具的核心功能

1. 完整的热榜数据获取

工具会从抖音官方接口获取热榜数据,包含:

  • 热搜词条标题

  • 热度值(自动转换为万/亿单位)

  • 标签类型(热/沸/新/荐)

  • 相关视频数量

  • 讨论视频数量

  • 事件时间

  • 话题封面图等

2. 生成导出Excel

获取数据后会自动生成Excel文件,包含三个工作表:

  • 主榜:完整的热搜列表,按排名排序

  • 上升热点:正在快速上升的热点话题

  • 全局信息:更新时间、分享信息等元数据(可忽略)

三、如何使用?

第一步:安装依赖

pip install requests pandas openpyxl

第二步:补全参数

需要手动补全一下params,headers和Cookie,可以在网上搜一下教程

完整代码

import requestsimport timeimport pandas as pdfrom datetime import datetimeclass DouyinHotlist:    def __init__(self, cookie: str, max_retries: int = 3, save_excel: bool = True):        self.cookie = cookie        self.max_retries = max_retries        self.save_excel = save_excel        self.data = None     def fetch(self) -> dict:        base_url = "https://www-hj.douyin.com/aweme/v1/web/hot/search/list/"        # 以下参数为固定模拟数据,无需修改        params = {            "device_platform": "webapp",            "aid": "6383",            "detail_list": "1",            "source": "6",            # ... 其他固定参数        }        headers = {            "User-Agent": "Mozilla/5.0 ...",            "Cookie": self.cookie,            "Referer": "https://www.douyin.com/",            # ... 其他固定请求头        }        for attempt in range(self.max_retries):            try:                response = requests.get(base_url, params=params, headers=headers, timeout=15)                response.raise_for_status()                data = response.json()                if data.get("data") and data["data"].get("word_list"):                    self.data = data                    if self.save_excel:                        self.save_to_excel()  # 自动保存Excel                    return data                else:                    print(f"警告: 接口返回数据格式异常,尝试重试... (第{attempt+1}次)")                    time.sleep(2)            except Exception as e:                print(f"请求失败: {e},正在重试... (第{attempt+1}次)")                time.sleep(3)        return None    def save_to_excel(self, filename_prefix: str = "douyin_hotlist"):        """        将当前存储的热榜数据保存到 Excel 文件        :param filename_prefix: 保存的文件名前缀,默认 "douyin_hotlist"        """        if not self.data:            print("无数据可保存")            return        active_time = self.data['data'].get('active_time', '未知')        timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")        filename = f"{filename_prefix}_{timestamp}.xlsx"        with pd.ExcelWriter(filename, engine='openpyxl') as writer:            # 1. 主榜            word_list = self.data['data'].get('word_list', [])            if word_list:                main_df = []                for idx, item in enumerate(word_list, 1):                    row = {                        '排名': idx,                        '标题': item.get('word', ''),                        '热度值': item.get('hot_value', 0),                        '浏览量': item.get('view_count', 0),                        '标签': self.get_label_text(item.get('label', 0)),                        '相关视频数': item.get('video_count', 0),                        '讨论视频数': item.get('discuss_video_count', 0),                        '事件时间': datetime.fromtimestamp(item.get('event_time', 0)).strftime('%Y-%m-%d %H:%M:%S') if item.get('event_time') else '',                        '话题ID': item.get('group_id', ''),                        '句子ID': item.get('sentence_id', ''),                        '句子标签': item.get('sentence_tag', 0),                        '封面图': item.get('word_cover', {}).get('url_list', [''])[0] if item.get('word_cover') else ''                    }                    main_df.append(row)                df_main = pd.DataFrame(main_df)                df_main.to_excel(writer, sheet_name='主榜', index=False)            # 2. 实时上升热点            trending_list = self.data['data'].get('trending_list', [])            if trending_list:                trend_df = []                for idx, item in enumerate(trending_list, 1):                    row = {                        '排名': idx,                        '标题': item.get('word', ''),                        '相关视频数': item.get('video_count', 0),                        '讨论视频数': item.get('discuss_video_count', 0),                        '事件时间': datetime.fromtimestamp(item.get('event_time', 0)).strftime('%Y-%m-%d %H:%M:%S') if item.get('event_time') else '',                        '话题ID': item.get('group_id', ''),                        '句子ID': item.get('sentence_id', ''),                        '句子标签': item.get('sentence_tag', 0),                        '封面图': item.get('word_cover', {}).get('url_list', [''])[0] if item.get('word_cover') else ''                    }                    trend_df.append(row)                df_trend = pd.DataFrame(trend_df)                df_trend.to_excel(writer, sheet_name='上升热点', index=False)            # 3. 全局信息            info = {                '更新时间': active_time,                '分享标题': self.data['data'].get('share_info', {}).get('share_title', ''),                '分享链接': self.data['data'].get('share_info', {}).get('share_url', ''),                '上升热点描述': self.data['data'].get('trending_desc', ''),                '展示样式': self.data['data'].get('display_style', 0)            }            df_info = pd.DataFrame([info])            df_info.to_excel(writer, sheet_name='全局信息', index=False)        print(f"数据已保存至: {filename}")    def print_hotlist(self):        """在控制台打印当前存储的热榜数据"""        if not self.data:            print("无数据可打印")            return        print("\n" + "="*70)        print(f"📈 抖音热榜 - 更新时间: {self.data['data'].get('active_time', '未知')}")        print("="*70)        # 主榜        print("\n🔥 【热榜主榜】")        for idx, item in enumerate(self.data['data']['word_list'], 1):            word = item.get('word', '无标题')            hot_value = item.get('hot_value', 0)            label = item.get('label', 0)            label_text = self.get_label_text(label)            hot_str = self.format_hot_value(hot_value)            print(f"{idx:3}. {word:<38}{label_text:>4} 热度: {hot_str:>12}")        # 上升热点        print("\n\n📈 【实时上升热点】")        trending = self.data['data'].get('trending_list', [])        for idx, item in enumerate(trending, 1):            word = item.get('word', '无标题')            video_count = item.get('video_count', 0)            discuss_count = item.get('discuss_video_count', 0)            print(f"{idx:3}. {word:<50}  相关视频: {video_count} 个 | 讨论: {discuss_count} 个")    @staticmethod    def format_hot_value(value):        """将热度值转换为万/亿格式"""        if value >= 100000000:            return f"{value/100000000:.1f}亿"        elif value >= 10000:            return f"{value/10000:.1f}万"        else:            return str(value)    @staticmethod    def get_label_text(label):        """根据label值返回标签文字(热/沸/新/荐)"""        label_map = {            1: "🔥热",            2: "💥沸",            3: "🌟新",            4: "👍荐"        }        return label_map.get(label, "")if __name__ == "__main__":    # 请将下面的 COOKIE 替换为你最新的完整 Cookie    YOUR_COOKIE = """    你的完整Cookie字符串,请自行替换    """.strip()    YOUR_COOKIE = " ".join(YOUR_COOKIE.split())  # 去除换行,整理为一行    douyin = DouyinHotlist(cookie=YOUR_COOKIE, save_excel=True)    hot_data = douyin.fetch()    if hot_data:        douyin.print_hotlist()    else:        print("获取热榜失败,请检查 Cookie 是否过期。")
四、实际效果
基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-11-10 11:54:28 HTTP/1.1 GET : http://h.sjds.net/a/494347.html
  2. 运行时间 : 0.081400s [ 吞吐率:12.29req/s ] 内存消耗:4,462.77kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=8b124bb7f904d5590be1692a6605d609
  1. /www/wwwroot/h.sjds.net/public/index.php ( 0.79 KB )
  2. /www/wwwroot/h.sjds.net/vendor/autoload.php ( 0.17 KB )
  3. /www/wwwroot/h.sjds.net/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /www/wwwroot/h.sjds.net/vendor/composer/platform_check.php ( 0.90 KB )
  5. /www/wwwroot/h.sjds.net/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /www/wwwroot/h.sjds.net/vendor/composer/autoload_static.php ( 4.90 KB )
  7. /www/wwwroot/h.sjds.net/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /www/wwwroot/h.sjds.net/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /www/wwwroot/h.sjds.net/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  10. /www/wwwroot/h.sjds.net/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  11. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  12. /www/wwwroot/h.sjds.net/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  13. /www/wwwroot/h.sjds.net/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  14. /www/wwwroot/h.sjds.net/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  15. /www/wwwroot/h.sjds.net/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  16. /www/wwwroot/h.sjds.net/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  17. /www/wwwroot/h.sjds.net/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  18. /www/wwwroot/h.sjds.net/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  19. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  20. /www/wwwroot/h.sjds.net/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  21. /www/wwwroot/h.sjds.net/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  22. /www/wwwroot/h.sjds.net/app/provider.php ( 0.19 KB )
  23. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  24. /www/wwwroot/h.sjds.net/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  25. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  26. /www/wwwroot/h.sjds.net/app/common.php ( 0.03 KB )
  27. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  28. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  29. /www/wwwroot/h.sjds.net/config/app.php ( 0.95 KB )
  30. /www/wwwroot/h.sjds.net/config/cache.php ( 0.78 KB )
  31. /www/wwwroot/h.sjds.net/config/console.php ( 0.23 KB )
  32. /www/wwwroot/h.sjds.net/config/cookie.php ( 0.56 KB )
  33. /www/wwwroot/h.sjds.net/config/database.php ( 2.48 KB )
  34. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  35. /www/wwwroot/h.sjds.net/config/filesystem.php ( 0.61 KB )
  36. /www/wwwroot/h.sjds.net/config/lang.php ( 0.91 KB )
  37. /www/wwwroot/h.sjds.net/config/log.php ( 1.35 KB )
  38. /www/wwwroot/h.sjds.net/config/middleware.php ( 0.19 KB )
  39. /www/wwwroot/h.sjds.net/config/route.php ( 1.89 KB )
  40. /www/wwwroot/h.sjds.net/config/session.php ( 0.57 KB )
  41. /www/wwwroot/h.sjds.net/config/trace.php ( 0.34 KB )
  42. /www/wwwroot/h.sjds.net/config/view.php ( 0.82 KB )
  43. /www/wwwroot/h.sjds.net/app/event.php ( 0.25 KB )
  44. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  45. /www/wwwroot/h.sjds.net/app/service.php ( 0.13 KB )
  46. /www/wwwroot/h.sjds.net/app/AppService.php ( 0.26 KB )
  47. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  48. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  49. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  50. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  51. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  52. /www/wwwroot/h.sjds.net/vendor/services.php ( 0.14 KB )
  53. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  54. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  55. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  56. /www/wwwroot/h.sjds.net/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  57. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  58. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  59. /www/wwwroot/h.sjds.net/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  60. /www/wwwroot/h.sjds.net/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  61. /www/wwwroot/h.sjds.net/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  62. /www/wwwroot/h.sjds.net/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  63. /www/wwwroot/h.sjds.net/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  64. /www/wwwroot/h.sjds.net/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  65. /www/wwwroot/h.sjds.net/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  66. /www/wwwroot/h.sjds.net/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  67. /www/wwwroot/h.sjds.net/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  68. /www/wwwroot/h.sjds.net/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  69. /www/wwwroot/h.sjds.net/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  70. /www/wwwroot/h.sjds.net/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  71. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  72. /www/wwwroot/h.sjds.net/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  73. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  74. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  75. /www/wwwroot/h.sjds.net/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  76. /www/wwwroot/h.sjds.net/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  77. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  78. /www/wwwroot/h.sjds.net/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  79. /www/wwwroot/h.sjds.net/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  80. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  81. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  82. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  83. /www/wwwroot/h.sjds.net/app/Request.php ( 0.09 KB )
  84. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  85. /www/wwwroot/h.sjds.net/app/middleware.php ( 0.25 KB )
  86. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  87. /www/wwwroot/h.sjds.net/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  88. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  89. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  90. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  91. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  92. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  93. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  94. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  95. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  96. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  97. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  98. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  99. /www/wwwroot/h.sjds.net/route/app.php ( 1.72 KB )
  100. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  101. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  102. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  103. /www/wwwroot/h.sjds.net/app/controller/Index.php ( 4.81 KB )
  104. /www/wwwroot/h.sjds.net/app/BaseController.php ( 2.05 KB )
  105. /www/wwwroot/h.sjds.net/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  106. /www/wwwroot/h.sjds.net/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  107. /www/wwwroot/h.sjds.net/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  108. /www/wwwroot/h.sjds.net/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  109. /www/wwwroot/h.sjds.net/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  110. /www/wwwroot/h.sjds.net/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  111. /www/wwwroot/h.sjds.net/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  112. /www/wwwroot/h.sjds.net/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  113. /www/wwwroot/h.sjds.net/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  114. /www/wwwroot/h.sjds.net/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  115. /www/wwwroot/h.sjds.net/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  116. /www/wwwroot/h.sjds.net/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  117. /www/wwwroot/h.sjds.net/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  118. /www/wwwroot/h.sjds.net/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  119. /www/wwwroot/h.sjds.net/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  120. /www/wwwroot/h.sjds.net/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  121. /www/wwwroot/h.sjds.net/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  122. /www/wwwroot/h.sjds.net/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  123. /www/wwwroot/h.sjds.net/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  124. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  125. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  126. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  127. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  128. /www/wwwroot/h.sjds.net/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  129. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  130. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  131. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  132. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  133. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  134. /www/wwwroot/h.sjds.net/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  135. /www/wwwroot/h.sjds.net/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  136. /www/wwwroot/h.sjds.net/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  137. /www/wwwroot/h.sjds.net/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  138. /www/wwwroot/h.sjds.net/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  139. /www/wwwroot/h.sjds.net/runtime/temp/c1d6e8c94b2c2fa10e259903674c804d.php ( 8.11 KB )
  140. /www/wwwroot/h.sjds.net/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.000574s ] mysql:host=172.18.0.4;port=3306;dbname=h_sjds;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000950s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000552s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000330s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000546s ]
  6. SELECT * FROM `set` [ RunTime:0.000281s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000639s ]
  8. SELECT * FROM `article` WHERE `id` = 494347 LIMIT 1 [ RunTime:0.000417s ]
  9. UPDATE `article` SET `lasttime` = 1794282868 WHERE `id` = 494347 [ RunTime:0.001954s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 65 LIMIT 1 [ RunTime:0.000336s ]
  11. SELECT * FROM `article` WHERE `id` < 494347 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000418s ]
  12. SELECT * FROM `article` WHERE `id` > 494347 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000381s ]
  13. SELECT * FROM `article` WHERE `id` < 494347 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.000732s ]
  14. SELECT * FROM `article` WHERE `id` < 494347 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.000590s ]
  15. SELECT * FROM `article` WHERE `id` < 494347 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.000595s ]
0.093483s