簡體   English   中英

使用python將內容寫入Excel

[英]Writing content into a Excel using python

我已經從頁面中提取了數據,使用 selenium python http://www.cmdgroup.com/construction-projects/project/1001622072

這是提取的數據看起來像,

Location:
Larkspur, CA
Status:
Postbids Unavailable, BIDS: 05/10/2012
Value:
$ 75,000.00
Documents:
Available with subscription
Categories
Offices
Subbid/Pkg:
GCs Request Subbids On Select Trades: Gutter, Deck Waterproofing & Window Installation
Scope:
Office Scope of work includes: Removal of existing Dex-O-Tex Weatherwear waterproofing system, sheet metal flashing at interior and exterior perimeter of deck, along with wood siding and trim in areas affected by work; Removal and re-installation of exist
Notes:
1. NO CALLS To Owner/Architect. Please Direct Project Inquiries To Bidding GCs Only. 2. SD Deacon Requests Project Inquiries & Bids To Malcolm McFarland At (916)969-0900, Fax (916)735-0800 Or malcolm.mcfarland@deacon.com 3. Please Note There Will Be A Pre
Details:
[Division 3]: Concrete Restoration & Cleaning. [Division 6]: Rough Carpentry, Finish Carpentry. [Division 7]: Waterproofing. [Division 8]: Metal Windows. [Division 9]: Painting. [Division 15]: Plumbing Piping.
Contract Conditions:
Invited Bidders Only

我希望使用 python 將此數據寫入 Excel 文件

標題

位置、狀態、投標、價值、類別、投標/包裝、范圍、注意事項、詳細信息、合同條件

"Larkspur, CA","Postbids Unavailable",05/10/12,"$ 75,000.00",Offices,"GCs Request Subbids On Select Trades:
 Gutter, Deck Waterproofing & Window Installation","Office Scope of work includes: Removal of existing Dex-O-Tex Weatherwear waterproofing system, 
sheet metal flashing at interior and exterior perimeter of deck, along with wood siding 
And trim in areas affected by work; Removal and re-installation of exist","1. NO CALLS To Owner/Architect. Please Direct Project Inquiries To Bidding GCs Only. 2. SD Deacon Requests Project Inquiries & Bids To Malcolm McFarland At (916)969-0900, Fax (916)735-0800 Or malcolm.mcfarland@deacon.com 3. Please Note There Will Be A Pre","[Division 3]: Concrete Restoration & Cleaning. [Division 6]: Rough Carpentry, Finish Carpentry. [Division 7]: Waterproofing. [Division 8]: Metal Windows. [Division 9]: Painting. [Division 15]: Plumbing Piping.","Invited Bidders Only"

提前致謝。

如果您可以將您的數據類型轉換為任何看起來像二維數組或列表列表的東西,您可以從中創建一個to_excel()數據to_excel()並使用to_excel()方法。 不過,為了進一步幫助您,我們需要更多地了解您的數據結構,而不僅僅是它在格式化和打印時的外觀。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM