To begin with, I am wondering whether this is possible at all. So on this web page there is a Print button, if you click it, it generates a nice looking pdf report of the html. And from there on you can either download or print it. So I am wondering is it possible to go to save it as a pdf as well but invoked by a python script?
Currently, I am parsing the HTML to gather the data I need but not nearly as good and fancy looking as the generated by them.
I've also tried pdfkit but it doesn't seem to be a good idea since the data is "hidden" by drop down menus/buttons.
您可以使用内置机械化的python或带selenium rc的python导航到页面,填写所需的任何表单详细信息,然后“单击”按钮并指定下载位置。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.