diff --git a/scraper.py b/scraper.py index fad1909..71728b5 100644 --- a/scraper.py +++ b/scraper.py @@ -379,7 +379,7 @@ class Scraper: result_data = { 'status': 'success', - 'message': "更多接口请查看(More API see): https://api-v2.douyin.wtf/docs", + 'message': "更多接口请查看(More API see): https://api.tikhub.io/docs", 'type': url_type, 'platform': url_platform, 'aweme_id': video_id, diff --git a/web_api.py b/web_api.py index f997a0b..8b1eacd 100644 --- a/web_api.py +++ b/web_api.py @@ -41,21 +41,21 @@ Rate_Limit = config["Web_API"]["Rate_Limit"] # 创建FastAPI实例 title = "Douyin TikTok Download/Scraper API-V1" -version = '3.1.1' -update_time = "2022/12/02" +version = '3.1.2' +update_time = "2022/12/25" description = """ #### Description/说明
点击展开/Click to expand > [中文/Chinese] - 爬取Douyin以及TikTok的数据并返回,更多功能正在开发中。 -- 如果需要更多接口,请查看[https://api-v2.douyin.wtf/docs](https://api-v2.douyin.wtf/docs)。 +- 如果需要更多接口,请查看[https://api.tikhub.io/docs](https://api.tikhub.io/docs)。 - 本项目开源在[GitHub:Douyin_TikTok_Download_API](https://github.com/Evil0ctal/Douyin_TikTok_Download_API)。 - 全部端点数据均来自抖音以及TikTok的官方接口,如遇到问题或BUG或建议请在[issues](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/issues)中反馈。 - 本项目仅供学习交流使用,严禁用于违法用途,如有侵权请联系作者。 > [英文/English] - Crawl the data of Douyin and TikTok and return it. More features are under development. -- If you need more interfaces, please visit [https://api-v2.douyin.wtf/docs](https://api-v2.douyin.wtf/docs). +- If you need more interfaces, please visit [https://api.tikhub.io/docs](https://api.tikhub.io/docs). - This project is open source on [GitHub: Douyin_TikTok_Download_API](https://github.com/Evil0ctal/Douyin_TikTok_Download_API). - All endpoint data comes from the official interface of Douyin and TikTok. If you have any questions or BUGs or suggestions, please feedback in [issues]( - This project is for learning and communication only. It is strictly forbidden to be used for illegal purposes. If there is any infringement, please contact the author. @@ -122,7 +122,7 @@ class APIRoot(BaseModel): Request_Rate_Limit: str = Rate_Limit Web_APP: str API_V1_Document: str - API_V2_Document: str + TikHub_API_Document: str GitHub: str @@ -224,7 +224,7 @@ async def root(): "Request_Rate_Limit": Rate_Limit, "Web_APP": "https://www.douyin.wtf/", "API_V1_Document": "https://api.douyin.wtf/docs", - "API_V2_Document": "https://api-v2.douyin.wtf/docs", + "TikHub_API_Document": "https://api.tikhub.io/docs", "GitHub": "https://github.com/Evil0ctal/Douyin_TikTok_Download_API", } return ORJSONResponse(data) diff --git a/web_app.py b/web_app.py index bc8aace..463b04d 100644 --- a/web_app.py +++ b/web_app.py @@ -2,7 +2,8 @@ # -*- encoding: utf-8 -*- # @Author: https://github.com/Evil0ctal/ # @Time: 2021/11/06 -# @Update: 2022/12/21 +# @Update: 2022/12/25 +# @Version: 3.0.1 # @Function: # 用于在线批量解析Douyin/TikTok的无水印视频/图集。 # 基于 PyWebIO,将scraper.py返回的内容显示在网页上。 @@ -71,9 +72,9 @@ def error_do(reason: str, value: str) -> None: put_markdown(t('输入了错误的链接(API-V1暂不支持主页链接解析)', 'Entered the wrong link (the home page link is not supported for parsing with API-V1)')) put_markdown( - t('如果需要解析个人主页,请使用API-V2', 'If you need to parse the personal homepage, please use API-V2')) - put_markdown(t('API-V2 文档: [https://api.tikhub.io/docs](https://api.tikhub.io/docs)', - 'API-V2 Documentation: [https://api.tikhub.io/docs](https://api.tikhub.io/docs)')) + t('如果需要解析个人主页,请使用TikHub_API', 'If you need to parse the personal homepage, please use TikHub_API')) + put_markdown(t('TikHub_API 文档: [https://api.tikhub.io/docs](https://api.tikhub.io/docs)', + 'TikHub_API Documentation: [https://api.tikhub.io/docs](https://api.tikhub.io/docs)')) put_markdown(t('该视频已经被删除或屏蔽(你看的都是些啥(⊙_⊙)?)', 'The video has been deleted or blocked (what are you watching (⊙_⊙)?)')) put_markdown(t('其他原因(请联系作者)', 'Other reasons (please contact the author)')) @@ -134,10 +135,10 @@ def ios_pop_window(): # API文档弹窗/API documentation pop-up def api_document_pop_window(): with popup(t("API文档", "API Document")): - put_markdown(t("💾API-V2文档", "💾API-V2 Document")) - put_markdown(t('API-V2 支持抖音和TikTok的更多接口, 如主页解析,视频解析,视频评论解析,个人点赞列表解析等...', - 'API-V2 supports more interfaces of Douyin and TikTok, such as home page parsing, video parsing, video comment parsing, personal like list parsing, etc...')) - put_link('[API-V2 Docs]', 'https://api.tikhub.io/docs', new_window=True) + put_markdown(t("💾TikHub_API文档", "💾TikHub_API Document")) + put_markdown(t('TikHub_API 支持抖音和TikTok的更多接口, 如主页解析,视频解析,视频评论解析,个人点赞列表解析等...', + 'TikHub_API supports more interfaces of Douyin and TikTok, such as home page parsing, video parsing, video comment parsing, personal like list parsing, etc...')) + put_link('[TikHub_API Docs]', 'https://api.tikhub.io/docs', new_window=True) put_html('
') put_markdown(t("💽API-V1文档", "💽API-V1 Document")) put_markdown(t("API-V1 支持抖音和TikTok的单一视频解析,具体请查看接口文档。", @@ -154,9 +155,9 @@ def log_popup_window(): put_markdown(t('输入了错误的链接(API-V1暂不支持主页链接解析)', 'Entered the wrong link (the home page link is not supported for parsing with API-V1)')) put_markdown( - t('如果需要解析个人主页,请使用API-V2', 'If you need to parse the personal homepage, please use API-V2')) - put_markdown(t('API-V2 文档: [https://api.tikhub.io/docs](https://api.tikhub.io/docs)', - 'API-V2 Documentation: [https://api.tikhub.io/docs](https://api.tikhub.io/docs)')) + t('如果需要解析个人主页,请使用TikHub_API', 'If you need to parse the personal homepage, please use TikHub_API')) + put_markdown(t('TikHub_API 文档: [https://api.tikhub.io/docs](https://api.tikhub.io/docs)', + 'TikHub_API Documentation: [https://api.tikhub.io/docs](https://api.tikhub.io/docs)')) put_markdown(t('该视频已经被删除或屏蔽(你看的都是些啥(⊙_⊙)?)', 'The video has been deleted or blocked (what are you watching (⊙_⊙)?)')) put_markdown(t('[点击此处在GitHub上进行反馈](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/issues)',