Mercurial > repos > guerler > springsuite
comparison planemo/lib/python3.7/site-packages/beautifulsoup4-4.9.1.dist-info/METADATA @ 0:d30785e31577 draft
"planemo upload commit 6eee67778febed82ddd413c3ca40b3183a3898f1"
author | guerler |
---|---|
date | Fri, 31 Jul 2020 00:18:57 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:d30785e31577 |
---|---|
1 Metadata-Version: 2.1 | |
2 Name: beautifulsoup4 | |
3 Version: 4.9.1 | |
4 Summary: Screen-scraping library | |
5 Home-page: http://www.crummy.com/software/BeautifulSoup/bs4/ | |
6 Author: Leonard Richardson | |
7 Author-email: leonardr@segfault.org | |
8 License: MIT | |
9 Download-URL: http://www.crummy.com/software/BeautifulSoup/bs4/download/ | |
10 Platform: UNKNOWN | |
11 Classifier: Development Status :: 5 - Production/Stable | |
12 Classifier: Intended Audience :: Developers | |
13 Classifier: License :: OSI Approved :: MIT License | |
14 Classifier: Programming Language :: Python | |
15 Classifier: Programming Language :: Python :: 2.7 | |
16 Classifier: Programming Language :: Python :: 3 | |
17 Classifier: Topic :: Text Processing :: Markup :: HTML | |
18 Classifier: Topic :: Text Processing :: Markup :: XML | |
19 Classifier: Topic :: Text Processing :: Markup :: SGML | |
20 Classifier: Topic :: Software Development :: Libraries :: Python Modules | |
21 Description-Content-Type: text/markdown | |
22 Requires-Dist: soupsieve (>1.2) | |
23 Provides-Extra: html5lib | |
24 Requires-Dist: html5lib ; extra == 'html5lib' | |
25 Provides-Extra: lxml | |
26 Requires-Dist: lxml ; extra == 'lxml' | |
27 | |
28 Beautiful Soup is a library that makes it easy to scrape information | |
29 from web pages. It sits atop an HTML or XML parser, providing Pythonic | |
30 idioms for iterating, searching, and modifying the parse tree. | |
31 | |
32 # Quick start | |
33 | |
34 ``` | |
35 >>> from bs4 import BeautifulSoup | |
36 >>> soup = BeautifulSoup("<p>Some<b>bad<i>HTML") | |
37 >>> print soup.prettify() | |
38 <html> | |
39 <body> | |
40 <p> | |
41 Some | |
42 <b> | |
43 bad | |
44 <i> | |
45 HTML | |
46 </i> | |
47 </b> | |
48 </p> | |
49 </body> | |
50 </html> | |
51 >>> soup.find(text="bad") | |
52 u'bad' | |
53 >>> soup.i | |
54 <i>HTML</i> | |
55 # | |
56 >>> soup = BeautifulSoup("<tag1>Some<tag2/>bad<tag3>XML", "xml") | |
57 # | |
58 >>> print soup.prettify() | |
59 <?xml version="1.0" encoding="utf-8"> | |
60 <tag1> | |
61 Some | |
62 <tag2 /> | |
63 bad | |
64 <tag3> | |
65 XML | |
66 </tag3> | |
67 </tag1> | |
68 ``` | |
69 | |
70 To go beyond the basics, [comprehensive documentation is available](http://www.crummy.com/software/BeautifulSoup/bs4/doc/). | |
71 | |
72 # Links | |
73 | |
74 * [Homepage](http://www.crummy.com/software/BeautifulSoup/bs4/) | |
75 * [Documentation](http://www.crummy.com/software/BeautifulSoup/bs4/doc/) | |
76 * [Discussion group](http://groups.google.com/group/beautifulsoup/) | |
77 * [Development](https://code.launchpad.net/beautifulsoup/) | |
78 * [Bug tracker](https://bugs.launchpad.net/beautifulsoup/) | |
79 * [Complete changelog](https://bazaar.launchpad.net/~leonardr/beautifulsoup/bs4/view/head:/CHANGELOG) | |
80 | |
81 # Note on Python 2 sunsetting | |
82 | |
83 Since 2012, Beautiful Soup has been developed as a Python 2 library | |
84 which is automatically converted to Python 3 code as necessary. This | |
85 makes it impossible to take advantage of some features of Python | |
86 3. | |
87 | |
88 For this reason, I plan to discontinue Beautiful Soup's Python 2 | |
89 support at some point after December 31, 2020: one year after the | |
90 sunset date for Python 2 itself. Beyond that point, new Beautiful Soup | |
91 development will exclusively target Python 3. Of course, older | |
92 releases of Beautiful Soup, which support both versions, will continue | |
93 to be available. | |
94 | |
95 # Supporting the project | |
96 | |
97 If you use Beautiful Soup as part of your professional work, please consider a | |
98 [Tidelift subscription](https://tidelift.com/subscription/pkg/pypi-beautifulsoup4?utm_source=pypi-beautifulsoup4&utm_medium=referral&utm_campaign=readme). | |
99 This will support many of the free software projects your organization | |
100 depends on, not just Beautiful Soup. | |
101 | |
102 If you use Beautiful Soup for personal projects, the best way to say | |
103 thank you is to read | |
104 [Tool Safety](https://www.crummy.com/software/BeautifulSoup/zine/), a zine I | |
105 wrote about what Beautiful Soup has taught me about software | |
106 development. | |
107 | |
108 # Building the documentation | |
109 | |
110 The bs4/doc/ directory contains full documentation in Sphinx | |
111 format. Run `make html` in that directory to create HTML | |
112 documentation. | |
113 | |
114 # Running the unit tests | |
115 | |
116 Beautiful Soup supports unit test discovery from the project root directory: | |
117 | |
118 ``` | |
119 $ nosetests | |
120 ``` | |
121 | |
122 ``` | |
123 $ python -m unittest discover -s bs4 | |
124 ``` | |
125 | |
126 If you checked out the source tree, you should see a script in the | |
127 home directory called test-all-versions. This script will run the unit | |
128 tests under Python 2, then create a temporary Python 3 conversion of | |
129 the source and run the unit tests again under Python 3. | |
130 | |
131 |