__iter__
__len__
__module__
__ne__
__new__
__nonzero__
__reduce__
__reduce_ex__
__repr__
__setattr__
__setitem__
__sizeof__
__str__
__subclasshook__
__unicode__
__weakref__
_all_strings
_attr_value_as_string
_attribute_checker
_feed
_find_all
_find_one
_lastRecursiveChild
_last_descendant
_popToTag:BeautifulSoup的内置方法,关于这些方法使用需要了解Python更深些的内容。
append:修改elementtree
attribselect_re
childGenerator
children
clear:清除标签内容
decode
decode_contents
decompose
descendants
encode
encode_contents
endData
extract:这个方法很关键,后面有介绍
fetchNextSiblings下一兄弟元素
fetchParents:父元素集
fetchPrevious:前一元素
fetchPreviousSiblings:前一兄弟元素:这几个能够对当前元素的父级别元素和兄弟级别进行查找。
find:只找到limit为1的结果
findAll
findAllNext
findAllPrevious
findChild
findChildren:子集合
findNext:下一元素
findNextSibling:下一个兄弟
findNextSiblings:下一群兄弟
findParent:父元素
findParents:所有的父元素集合
findPrevious
findPreviousSibling
findPreviousSiblings:对当前元素和子元素进行遍历查找。
find_all_next
find_all_previous
find_next
find_next_sibling
find_next_siblings
find_parent
find_parents
find_previous
find_previous_sibling
find_previous_siblings:这些下划线方法命名是bs4方法,推荐使用这类
format_string
get
getText
get_text:得到文档标签内的内容,不包括标签和标签属性
handle_data

handle_endtag
handle_starttag
has_attr
has_key
index
insert
insert_after
insert_before:修改elementtree
isSelfClosing
is_empty_element
new_string
new_tag
next
nextGenerator
nextSibling
nextSiblingGenerator
next_elements
next_siblings
object_was_parsed
parentGenerator
parents
parserClass
popTag
prettify:格式化HTML文档
previous
previousGenerator
previousSibling
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-29971-3.html
西方列强普遍认为吨位和火炮数量占优的日本海军胜算较大
这种酒就是骗骗小孩子的