Jeswang's Blog

盲目跟随还是独立去做,To be or not to be?

Soup Helper —— 圈出 Beautiful Soup 选中的内容

| Comments

写网页抓取程序经常会用到 Beautiful Soup,但是在命令行确定 Beautiful Soup 选中的内容并不直观,所以写了个小程序,把 Beautiful Soup 选中的元素圈出来,这样写爬虫的流程就顺畅多了。 代码不多,放在 Github 上。

Screenshot

image

How to use

You need to install wxPython(version >= 2.9) and Beautiful Soup 4:

pip install wxpython beautifulsoup4

and then run the soup_helper.py file in src:

python soup_helper.py

/- EOF /-

Comments