Writing Python Selenium output to Excel

后端 未结 2 1025
逝去的感伤
逝去的感伤 2021-01-26 17:06

I have written a script to scrape product information from online websites. The goal is to write these information out to an Excel file. Due to my limited Python knowledge, I on

2条回答
  •  一生所求
    2021-01-26 17:58

    https://pythonhosted.org/openpyxl/tutorial.html

    This is a tutorial for a python library that allows manipulation for python There are other libraries but I like using this one.

    from openpyxl import Workbook wb = Workbook()

    then use the methods given to write your data and then

    wb.save(filename)

    really easy to get started.

    This is a pdf tutorial for using xlwt and xlrd, but I don't really use these modules alot. http://www.simplistix.co.uk/presentations/python-excel.pdf

提交回复
热议问题