如何让我的https文件获取工作? [英] How can I get my https file fetch working?
问题描述
大家好!
我是perl的新手,我正在尝试自动提取文件。
我有这个网址(在这个例子中称为''https:// GetMyFile''),当我将其粘贴到浏览器中时,会弹出文件下载按钮。 - 你想打开或保存这个文件吗?..然后点击''save''给我我想要的文件。
我想自动获得相同的结果,没有必须将网址粘贴到浏览器中,然后点击保存,指定保存文件的位置。
所以,这是我的第一次尝试:
----------------------------------------------- ----------------------
看起来应该有效。不知道问题是什么。
我同意Kevin的观点。蝙蝠,看起来它可能会起作用,但我还没有彻底完成它。我可以说你想看看Spidering Hacks这本书。具体来说,这部分在这里:
http://books.google.com/books?id=4M2...PXiAg#PPA60,M1
这将帮助您使用Mechanize模块进行提取。
问候,
Jeff
嗨!非常感谢你们,给我快速反馈!
我现在知道,这个问题与凭证有关...
当在剧本中,我改变
Hi y''all!
I''m new at perl, and I''m trying to automate a file fetch.
I have this url (in this example called ''https://GetMyFile''), which, when I paste it into a browser, gives me the pop-up "File Download" - Do you want to open or save this file?.. And clicking ''save'' gives me the file I want.
I would like to achieve the same result automatically, without having to paste the url into a browser and click ''save'' a specify where to save my file.
So, here''s my first attempt:
---------------------------------------------------------------------
Looks like it should work. Don''t know what the problem is.
I agree with Kevin. Right off the bat, it looks like it might work, but I haven''t gone through it thoroughly. What I can say is that you want to look at the book "Spidering Hacks". Specifically, this part here:
http://books.google.com/books?id=4M2...PXiAg#PPA60,M1
That will help you with a fetch using the Mechanize module.
Regards,
Jeff
Hi! Thank you so much guys, for giving me feedback quickly!
I now know though, that the problem is related to credentials...
When, in the script, I change
这篇关于如何让我的https文件获取工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!