beautifulsoup
beautifulsoup copied to clipboard
Beautifulsoup docs in Chinese
中文手册页面的一个链接被错误地指向了百度 
https://beautifulsoup.readthedocs.io/zh_CN/v4.4.0/index.html#id35 字符窜->字符串 >重申: 搜索 name 参数的值可以使任一类型的 过滤器 ,字符窜,正则表达式,列表,方法或是 True . 感谢翻译!
我在pycharm中使用.string或者.contents等时,解析一个自己写的html,为什么会把html里的换行解析为子节点?
https://github.com/DeronW/beautifulsoup/blob/v4.4.0/docs/index.rst The link to `https://www.crummy.com/software/BeautifulSoup/bs4/doc/index.cn.html` is a 404.
 这里可以直接通过soup.a.string = "other string" 来直接修改a标签的字符串内容: 
'\r\r\r\r' print '\r\r\r\r'
`from bs4 import BeautifulSoup` `import re` `html = "相关阅读:《 向前迈出一大步 试驾比亚迪宋Pro燃油版 》"` `soup = BeautifulSoup(html, "lxml")` `tags = soup.find_all("p", text=re.compile(r"相关阅读"))` `print(tags) # return []` but this html can get result...