大小: 1155
說明:
|
大小: 820
說明:
|
這個顏色代表刪除的 | 這個顏色代表增加的 |
行號 1: | 行號 1: |
##master-page:Pot #format wiki #language en #pragma section-numbers off |
提问 |
行號 6: | 行號 3: |
= 台灣 Python 使用者群組 PyTUG = | 如何解除以下error? Traceback (most recent call last): File "<pyshell#4>", line 1, in <module> noStarchSoup = bs4.BeautifulSoup(res.text) File "C:\Users\USER\AppData\Local\Programs\Python\Python36-32\lib\bs4\__init__.py", line 153, in __init__ builder = builder_class() File "C:\Users\USER\AppData\Local\Programs\Python\Python36-32\lib\bs4\builder\_htmlparser.py", line 49, in __init__ return super(HTMLParserTreeBuilder, self).__init__(*args, **kwargs) TypeError: __init__() got an unexpected keyword argument 'strict' |
行號 8: | 行號 13: |
我們是台灣一群愛好 ["Python"] 程式語言的使用者。這裡是我們的 wiki 網頁:wiki.pot。'''[:LogoWanted:徵求漂亮 logo 中]'''。 | |
行號 10: | 行號 14: |
pot 是 Python.Org.Tw 這個 domain 的縮寫,也是我們對'''台灣 Python 使用者群組'''的略稱。 | 原coding如下 >>> import requests, bs4 >>> res = requests.get('http://nostarch.com') >>> res.raise_for_status() >>> noStarchSoup = bs4.BeautifulSoup(res.text) >>> type(noStarchSoup) <class 'bs4.BeautifulSoup'> |
行號 12: | 行號 22: |
如果你和我們一樣節省,應該會喜歡這樣叫。 | |
行號 14: | 行號 23: |
如果你想找舊的 www.python.org.tw,請洽 http://oldwww.python.org.tw/ 。 如果你想找舊的 www.zope.org.tw,請洽 http://oldwww.zope.org.tw/ 。 這兩個網站使用 ["Zope"]/["Plone"],目前沒有人負責維護,如果你對維護有興趣,請致信予 root@python.org.tw 。 [:Zope:對 Zope 有興趣]?請進。 [:Plone:對 Plone 有興趣]?請進。 ["Cookbook"] 請進。 pot 還有一些其它的資源,請見 PotResources 頁面。 本 wiki 使用 MoinMoin。關於這個 wiki 的使用介紹 - [:wiki使用介紹 - 請點擊此:請點擊此]。如果你想閱讀或編輯這個 wiki 的待改進事項,請[:PotWikiTodo:進入該頁面]。 |
有大师可以帮帮忙吗 |
提问
如何解除以下error? Traceback (most recent call last):
File "<pyshell#4>", line 1, in <module>
noStarchSoup = bs4.BeautifulSoup(res.text)
File "C:\Users\USER\AppData\Local\Programs\Python\Python36-32\lib\bs4\init.py", line 153, in init
- builder = builder_class()
File "C:\Users\USER\AppData\Local\Programs\Python\Python36-32\lib\bs4\builder\_htmlparser.py", line 49, in init
return super(HTMLParserTreeBuilder, self).init(*args, **kwargs)
TypeError: init() got an unexpected keyword argument 'strict'
原coding如下 >>> import requests, bs4 >>> res = requests.get('http://nostarch.com') >>> res.raise_for_status() >>> noStarchSoup = bs4.BeautifulSoup(res.text) >>> type(noStarchSoup) <class 'bs4.BeautifulSoup'>
有大师可以帮帮忙吗