Web scraping and parsing with Beautiful Soup & Python Introduction p.1
sentdex
0:00 / 0:00
Web scraping and parsing with Beautiful Soup & Python Introduction p.1
303 287 просмотров · 9 лет назад
sentdex
1,44 млн подписчиков
303 287 просмотров · 9 лет назад
Welcome to a tutorial on web scraping with Beautiful Soup 4. Beautiful Soup is a Python library aimed at helping programmers https://i9.ytimg.com/vi/aIPqt-OdmS0/0... are trying to scrape data from websites.
To use beautiful soup, you need to install it: $ pip install beautifulsoup4. Beautiful Soup also relies on a parser, the default is lxml. You may already have it, but you should check (open IDLE and attempt to import lxml). If not, do: $ pip install lxml or $ apt-get install python-lxml.
To begin, we need HTML. I have created an example page for us to work with: https://pythonprogramming.net/parseme...
Tutorial code: https://pythonprogramming.net/introdu...
Beautiful Soup 4 documentation: https://www.crummy.com/software/Beaut...
https://pythonprogramming.net
/ sentdex
/ pythonprogramming.net
https://plus.google.com/+sentdex