https://github.com/dchan3/thoughtfulsoup
dchan3's thoughtful extension of BS4
https://github.com/dchan3/thoughtfulsoup
beautifulsoup beautifulsoup4 bs4 extension python web-scraping
Last synced: 8 months ago
JSON representation
dchan3's thoughtful extension of BS4
- Host: GitHub
- URL: https://github.com/dchan3/thoughtfulsoup
- Owner: dchan3
- License: other
- Created: 2018-02-21T12:24:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-24T17:12:15.000Z (over 7 years ago)
- Last Synced: 2025-01-10T04:32:08.013Z (9 months ago)
- Topics: beautifulsoup, beautifulsoup4, bs4, extension, python, web-scraping
- Language: Python
- Homepage:
- Size: 445 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING.txt
- Authors: AUTHORS.txt
Awesome Lists containing this project
README
# ThoughtfulSoup
*BeautifulSoup4 thoughtfully extended by dchan3*## Extensions Implemented
### Pseudo-selectors
- `:first-child`
- `:first-of-type`
- `:is`
- `:last-child`
- `:last-of-type`
- `:not`
- `:nth-child`
- `:nth-last-of-type`
- `:nth-of-type`
- `an+b` functional notation for `nth` pseudo-selectors### Runtime Optimizations
- Use dictionary objects rather than long equality `if-elif` statements
* Tests run in less time on average, although difference is negligible## Original License
Beautiful Soup is made available under the MIT license:Copyright (c) 2004-2017 Leonard Richardson
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.Beautiful Soup incorporates code from the html5lib library, which is
also made available under the MIT license. Copyright (c) 2006-2013
James Graham and other contributors