python树形 解析html,HTML Parse tree using Python 2.7

尝试为一个HTML表格建立解析树但未成功。内容包括HTML示例和安装ete2库的过程,ete2是一个用于树探索的Python环境。安装过程中遇到了numpy、MySQLdb、PyQt4和lxml等依赖缺失的问题,但最终仍选择继续安装。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

I was trying to get configure one parse tree for the below HTML table,but couldn't form it.I want to see how the tree structure looks like!can anyone help me here?

#

#

#

# The Dormouse's story

#

#

#

#

#

# The Dormouse's story

#

#

#

# Once upon a time there were three little sisters; and their names were

#

# Elsie

#

# ,

#

# Lacie

#

# and

#

# Tillie

#

# ; and they lived at the bottom of a well.

#

#

# ...

#

#

#

EDIT

Microsoft Windows [Version 6.1.7600]

Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\matt>easy_install ete2

Searching for ete2

Reading http://pypi.python.org/simple/ete2/

Reading http://ete.cgenomics.org

Reading http://ete.cgenomics.org/releases/ete2/

Reading http://ete.cgenomics.org/releases/ete2

Best match: ete2 2.1rev539

Downloading http://ete.cgenomics.org/releases/ete2/ete2-2.1rev539.tar.gz

Processing ete2-2.1rev539.tar.gz

Running ete2-2.1rev539\setup.py -q bdist_egg --dist-dir c:\users\arupra~1\appdat

a\local\temp\easy_install-sypg3x\ete2-2.1rev539\egg-dist-tmp-zemohm

Installing ETE (A python Environment for Tree Exploration).

Checking dependencies...

numpy cannot be found in your python installation.

Numpy is required for the ArrayTable and ClusterTree classes.

MySQLdb cannot be found in your python installation.

MySQLdb is required for the PhylomeDB access API.

PyQt4 cannot be found in your python installation.

PyQt4 is required for tree visualization and image rendering.

lxml cannot be found in your python installation.

lxml is required from Nexml and Phyloxml support.

However, you can still install ETE without such functionality.

Do you want to continue with the installation anyway? [y,n]y

Your installation ID is: d33ba3b425728e95c47cdd98acda202f

warning: no files found matching '*' under directory '.'

warning: no files found matching '*.*' under directory '.'

warning: manifest_maker: MANIFEST.in, line 4: path 'doc/ete_guide/' cannot end w

ith '/'

warning: manifest_maker: MANIFEST.in, line 5: path 'doc/' cannot end with '/'

warning: no previously-included files matching '*.pyc' found under directory '.'

zip_safe flag not set; analyzing archive contents...

Adding ete2 2.1rev539 to easy-install.pth file

Installing ete2 script to C:\Python27\Scripts

Installed c:\python27\lib\site-packages\ete2-2.1rev539-py2.7.egg

Processing dependencies for ete2

Finished processing dependencies for ete2

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值