j0shfan

j0shfan

V2EX member #424278, joined on 2019-06-24 20:49:36 +08:00
j0shfan's recent replies
@learningman flask 他每个 api 确实是个函数,但要互相调用的话貌似只看到有这种对另一个 api 发请求的例子
@18870715400 可是我并没有把第一个 api 接收到的文件存在文件系统里
@est 那段 api 代码太长了,以后有修改的话,改好几个地方怕忘了
Aug 11, 2020
Replied to a topic by j0shfan Python Selenium 爬网页的问题, css selector
@jeeyong 实际我想批量选的是 a href 后面那个文件的连接。
请问 find 是个什么概念,是 find_element(s)吗
Aug 11, 2020
Replied to a topic by j0shfan Python Selenium 爬网页的问题, css selector
@yejianmail 一样选不中,捂脸
@ytymf 可以了,老哥,在我自己电脑上配成了,多谢!
总结一下就是在 applicationhost.config 下,自己某个站点的配置中添加一个 application 的设置
<application path="/try-this">
<virtualDirectory path="/" physicalPath="C:\Users\User1\Documents\My Web Sites\WebSite1\myfiles" />
</application>
然后在这个文件夹下 C:\Users\User1\Documents\My Web Sites\WebSite1\myfiles 下添加 web.config,期间我遇到了 404.3error,因为我的文件夹中有个.webp 的文件,该拓展名和对应的 mime type 在的 applicationhost.config 默认设置中没有,下面是加上 mimemap 配置成功的 web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<!-- this configuration overrides the FastCGI handler to let IIS serve the static files -->
<handlers>
<clear/>
<add name="StaticFile" path="*" verb="*" modules="StaticFileModule" resourceType="File" requireAccess="Read" />
</handlers>
<staticContent>
<mimeMap fileExtension=".webp" mimeType="image/webp" />
</staticContent>
</system.webServer>
</configuration>
@ytymf 多谢,老哥,我觉得这里面这个默认的虚拟目录 web.config 很有价值的,我这就试试!
Jun 11, 2020
Replied to a topic by j0shfan Python Apache2.4 + mod_wsgi + Flask 的问题
@qile1
感谢建议!
没有吧,没碰到过。开多线程如何?我瞎蒙的
Jun 11, 2020
Replied to a topic by j0shfan Python Apache2.4 + mod_wsgi + Flask 的问题
@tomczhen
@ytymf
感谢建议!我就需要这样的方案建议!!周末试试!
Jun 11, 2020
Replied to a topic by j0shfan Python Apache2.4 + mod_wsgi + Flask 的问题
@xulolololololo 可以,这次是真的跪了,应该用 Linux 的
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1513 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 21ms · UTC 16:45 · PVG 00:45 · LAX 09:45 · JFK 12:45
♥ Do have faith in what you're doing.