我試圖使用scraperwiki和bs4將PDF轉換爲文本文件。我得到TypeError。我對Python非常感興趣,並且非常感謝您的幫助。發生 錯誤的位置: File "scraper_wiki_download.py", line 53, in write_file
f.write(soup)
這是我的代碼: # Get content, regardless of whether an
我想湊這個網頁上從一個特定元素中的文本數據(使用scraperwiki) import requests
from lxml import html
response = requests.get(http://portlandmaps.com/detail.cfm?action=Assessor&propertyid=R246274)
tree = html.fromstring(re