74123

public static List listFiles(String folderUrl) throws IOException {
List fileUrls = new ArrayList<>();
URL url = new URL(folderUrl);

    try (InputStream inputStream = url.openStream()) {
        String htmlContent = IOUtils.toString(inputStream, "UTF-8");
        String[] lines = htmlContent.split("\n");

        for (String line : lines) {
            if (line.contains("<a href=\"")) {
                String fileUrl = line.split("<a href=\"")[1].split("\"")[0];
                if (!fileUrl.equals("../")) {
                    fileUrls.add(folderUrl + fileUrl);
                }
            }
        }
    }
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
C:\Users\流萤>pip install Scipy Collecting Scipy Using cached scipy-1.10.1.tar.gz (42.4 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error × Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [12 lines of output] + meson setup --prefix=c:\python\python38-32 C:\Users\流萤\AppData\Local\Temp\pip-install-6nxcxv9v\scipy_4bbebe14fac74123bd4b1eab11096f4a C:\Users\流萤\AppData\Local\Temp\pip-install-6nxcxv9v\scipy_4bbebe14fac74123bd4b1eab11096f4a\.mesonpy-jw542hr7\build --native-file=C:\Users\流萤\AppData\Local\Temp\pip-install-6nxcxv9v\scipy_4bbebe14fac74123bd4b1eab11096f4a\.mesonpy-native-file.ini -Ddebug=false -Doptimization=2 The Meson build system Version: 1.1.1 Source dir: C:\Users\流萤\AppData\Local\Temp\pip-install-6nxcxv9v\scipy_4bbebe14fac74123bd4b1eab11096f4a Build dir: C:\Users\流萤\AppData\Local\Temp\pip-install-6nxcxv9v\scipy_4bbebe14fac74123bd4b1eab11096f4a\.mesonpy-jw542hr7\build Build type: native build Project name: SciPy Project version: 1.10.1 ..\..\meson.build:1:0: ERROR: Compiler cl can not compile programs. A full log can be found at C:\Users\流萤\AppData\Local\Temp\pip-install-6nxcxv9v\scipy_4bbebe14fac74123bd4b1eab11096f4a\.mesonpy-jw542hr7\build\meson-logs\meson-log.txt [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details.
05-29
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值