Member-only story
Beginners Python Projects
Python Script that sends weather information as notification
Scrape Weather Information Directly From the Official Google Search Page.
Web Scraping is a technique of scraping data from the internet with the help of different tools and libraries. Python is considered to be the easiest and simple programming language to perform web scraping. There are many libraries available in python that helps in scraping data from the web with some lines of code. Requests and Beautiful Soup are two of the most used and beginner-friendly libraries for web scraping.
Beautiful Soup
Beautiful Soup is a Python package for parsing HTML and XML documents. It creates a parse tree for different parsed pages that can be used to extract data from Source(HTML), which is useful for web scraping. It is available for both python 2 and 3. Beautiful Soup Uses a Request Module to send a connection request to the target server.
Requests :
Requests is a Python HTTP library, released under the Apache License 2.0. It is also the most installed package in python. The goal of this library is to send HTTP requests simpler and more human-friendly. Using a single line of code we can establish the connection…