Basics of Web Scraping and practical exercise
Useful links for self-learning: https://www.youtube.com/watch?v=3xQTJi2tqgk http://docs.python-requests.org https://www.crummy.com/software/BeautifulSoup/bs4/doc/ Installations: 1. Install requests (make sure it's 'requests', not 'request') pip install requests --upgrade 2. Install beautifulsoup4 pip install bs4 or, pip install beautifulsoup4 If an older version is installed and if you want to update the package, do following: pip install beautifulsoup4 --upgrade Coding with Python: Initial setup when you start coding >> # import libraries import requests from bs4 import BeautifulSoup url = "https://www.yellowpages.com/search?search_terms=coffee&geo_location_terms=Los+Angeles%2C+CA" r = requests.get(url); # r.content // careful about this step. it will scrap all data in an unstructured way # parse the html using beautiful soap and store in variable ...