No BeautifulSoup For You
Project description
⚠️ Warning
gazpacho is in Beta right now. Expect some things to change.
About
gazpacho is not BeautifulSoup.
Though gazpacho is a web scraping library, it's not a full-service web scraping library. Really, gazpacho just does two things: get
and .find
.
Usage
gazpacho is easy to use:
from gazpacho import get, Soup
url = 'https://en.wikipedia.org/wiki/Gazpacho'
html = get(url)
soup = Soup(html)
soup.find('span', {'class': 'mw-headline'})
# [<span class="mw-headline" id="History">History</span>,
# <span class="mw-headline" id="Ingredients_and_preparation">Ingredients and preparation</span>,
# <span class="mw-headline" id="Variations">Variations</span>,
# <span class="mw-headline" id="In_Spain">In Spain</span>,
# <span class="mw-headline" id="Arranque_roteño">Arranque roteño</span>,
# <span class="mw-headline" id="Extremaduran_variations">Extremaduran variations</span>,
# <span class="mw-headline" id="La_Mancha_variations">La Mancha variations</span>,
# <span class="mw-headline" id="Castilian_variations">Castilian variations</span>,
# <span class="mw-headline" id="See_also">See also</span>,
# <span class="mw-headline" id="References">References</span>]
Installation
pip install gazpacho
Contribute
For feature requests or bug reports, please use Github Issues
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gazpacho-0.5.tar.gz
(3.2 kB
view hashes)