【问题标题】:Scan aPDF file using online scanner [closed]使用在线扫描仪扫描 PDF 文件 [关闭]
【发布时间】:2014-11-30 13:47:08
【问题描述】:

我想使用“wepavet”扫描大约 1000 个 pdf 文件,它是一种在线扫描仪,但一次只需要一个文件我如何扫描整个 1000 个文件,我可以使用 python 吗?

https://wepawet.iseclab.org/

有人可以帮帮我吗? 提前感谢您的帮助

【问题讨论】:

    标签: python scanning


    【解决方案1】:

    您可以使用 selenium、mechanize 或 urllib 等 python 工具来自动化该过程(我不确定 urllib)。使用mechanize填表(填表并提交的简单例子)

    响应 = br.open(url) 打印 response.read() response1 = br.response() 打印 response1.read() br.select_form("form1") br.form = list(br.forms())[0] 响应 = br.submit() 打印 response.read()

    并按照代码中的方式提交。有关机械化的更多信息,请访问http://www.pythonforbeginners.com/cheatsheet/python-mechanize-cheat-sheet。希望它有效。

    【讨论】:

    • 我有错误 ImportError: No module named heapq
    • 能贴出你用过的代码吗?
    • 和你上面给我的一样========= from mechanize import Browser br = Browser() br.open("wepawet.iseclab.org/")=========== br.select_form(name="edit_form" ) br['file'] = 'C:\Users\Test\Desktop\MultiplePages.pdf' br.submit()
    • 有问题是因为我用的是windows 8
    • Windows 8 对于机械化来说应该不是问题。我的问题是,heapq 是从哪里来的?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-08-11
    • 1970-01-01
    • 1970-01-01
    • 2013-11-05
    • 2015-03-19
    • 2014-06-29
    相关资源
    最近更新 更多