浏览代码

公众号增加header

丁云鹏 1 年之前
父节点
当前提交
8571a7b425
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      etl-core/src/main/java/com/tzld/crawler/etl/util/FileUtils.java

+ 3 - 3
etl-core/src/main/java/com/tzld/crawler/etl/util/FileUtils.java

@@ -89,8 +89,8 @@ public class FileUtils {
         return filePath;
     }
 
-    public static void download(String fileUrl, String filePath, boolean useUa, boolean useProxy) throws Exception {
-        downloadForGZH(fileUrl, filePath, false, false, null);
+    public static void download(String fileUrl, String filePath, boolean useUa) throws Exception {
+        downloadForGZH(fileUrl, filePath, useUa, null);
     }
 
     public static void download(String fileUrl, String filePath, boolean useUa, boolean useProxy, Map<String, String> proxyInfo) throws Exception {
@@ -193,7 +193,7 @@ public class FileUtils {
 
     public static void main(String[] args) throws Exception {
         // try {
-        download("https://mpvideo.qpic.cn/0b2eamabmaaaiaakmkq3jfsvaa6dcybqafqa.f10002.mp4?dis_k=af0809430b6148733c161cb94368bd30&dis_t=1696833857&play_scene=10120&auth_info=LdSvh8hZbHlJiPWF6A9dSW1HMR9TdjtFUl17LX1YNxkLblZiChITAzhoFzJxNFFq&auth_key=5fca6f1024c9f40e9f6ad50aad0e437e&vid=wxv_3132660909191184387&format_id=10002&support_redirect=0&mmversion=false", "/Users/dingyunpeng/Downloads/" + System.currentTimeMillis(), true, true);
+        download("https://mpvideo.qpic.cn/0b2eamabmaaaiaakmkq3jfsvaa6dcybqafqa.f10002.mp4?dis_k=af0809430b6148733c161cb94368bd30&dis_t=1696833857&play_scene=10120&auth_info=LdSvh8hZbHlJiPWF6A9dSW1HMR9TdjtFUl17LX1YNxkLblZiChITAzhoFzJxNFFq&auth_key=5fca6f1024c9f40e9f6ad50aad0e437e&vid=wxv_3132660909191184387&format_id=10002&support_redirect=0&mmversion=false", "/Users/dingyunpeng/Downloads/" + System.currentTimeMillis(), true);
         //
         // } catch (Exception e) {
         //     e.printStackTrace();