Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110076 - Ebuild for BeautifulSoup
Summary: Ebuild for BeautifulSoup
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2005-10-21 16:58 UTC by Nilton Volpato
Modified: 2006-05-25 09:11 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
beautifulsoup-2.1.1.ebuild (beautifulsoup-2.1.1.ebuild,519 bytes, text/plain)
2005-10-21 16:59 UTC, Nilton Volpato
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nilton Volpato 2005-10-21 16:58:47 UTC
http://www.crummy.com/software/BeautifulSoup/

Beautiful Soup parses arbitrarily invalid XML- or HTML-like substance
into a tree representation. It provides methods and Pythonic idioms
that make it easy to search and modify the tree.

A well-formed XML/HTML document will yield a well-formed data
structure. An ill-formed XML/HTML document will yield a
correspondingly ill-formed data structure. If your document is only
locally well-formed, you can use this library to find and process the
well-formed part of it. The BeautifulSoup class has heuristics for
obtaining a sensible parse tree in the face of common HTML errors.

Beautiful Soup has no external dependencies. It works with Python 2.2
and up.


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Nilton Volpato 2005-10-21 16:59:45 UTC
Created attachment 71145 [details]
beautifulsoup-2.1.1.ebuild
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2005-10-21 17:07:27 UTC
- #IUSE="doc" -> IUSE=""
Comment 3 Jonas MG 2006-03-27 03:51:14 UTC
* Testing BeautifulSoup installation:

# mkdir -p /usr/local/portage/dev-python/beautifulsoup
# cd /usr/local/portage/dev-python/beautifulsoup

# wget http://bugs.gentoo.org/attachment.cgi?id=71145 -O beautifulsoup-2.1.1.ebuild
# sed 's/^#IUSE.*/IUSE=""/' beautifulsoup-2.1.1.ebuild -i
# cd

# emerge beautifulsoup --digest -av

ALL Correct!

* Testing modules help:

$ ipython

: import BeautifulSoupTests
: help (BeautifulSoupTests)

OK

: import BeautifulSoup
: help (BeautifulSoup)

FAIL: TypeError: cannot concatenate 'str' and 'NullType' objects
Comment 4 Jonas MG 2006-03-27 05:13:57 UTC
Sorry, all is right!

* Testing modules help:

$ ipython

: from BeautifulSoup import BeautifulSoup
: help (BeautifulSoup)

OK
Comment 5 Jonas MG 2006-04-26 00:13:23 UTC
It should be in portage, it's a very well parser html/xml.

In addition python community recommend its use instead of htmllib.HTMLParser and HTMLParser.HTMLParser
Comment 6 Marien Zwart (RETIRED) gentoo-dev 2006-05-25 09:11:40 UTC
(In reply to comment #3)
> : help (BeautifulSoup)
> 
> FAIL: TypeError: cannot concatenate 'str' and 'NullType' objects

Python's help code explodes trying to document BeautifulSoup.Null, which has a somewhat peculiar type. Not really BeautifulSoup's fault, so committed it with some cleanup.