Learn how to leverage Python's amazing tools to scrape data from other websites.
The end goal of this course is to scrape blogs to analyze trending keywords and phrases.
We'll be using Python 3.6, Requests, BeautifulSoup, Asyncio, Pandas, Numpy, and more!
Your First Scraping Program
Section 1:Watch here
Final code is first-web-scraping-program.zip
Install Guides
Windows: https://kirr.co/6r8wr9
Linux: https://kirr.co/c3uvuu
Goals of Your First Scraping Program:
- Enter any url (webpage)
- Open and scrape that webpage's words each word
- Save that info into a csv
Third party Packages
-
Python Requests : http://docs.python-requests.org/en/master/
pip install requests
Basically, it opens the webpage for us in this one.
-
BeautifulSoup 4 : https://www.crummy.com/software/BeautifulSoup/bs4/doc/
pip install beautifulsoup4
This allows us to search & extract content from an HTML webpage
Advancing Scraping
Section 2:Goals of Advancing Scraping:
- Refine scraping code
- Scrape Links
- Add Scrape Depth
- Scrape & Parse words in a Post
3 - Regular Expression Validation
11 - Local Paths by Regular Expression
Asyncio & Web Scraping
Section 3:code coming soon