Python >> Web Scraping

Featured image for Identifying the Right Element Location when Scraping with BeautifulSoup

Identifying the Right Element Location when Scraping with BeautifulSoup

02 Feb 2020

Scraping usually involves identifying the right location of the element, and then passing that information (e.g. CSS Selector or Xpath) to a scraping code to automate the process. However, there are occasions when you thought you have identified the right selector by using "Inspect" feature on the website, but the ...

Featured image for Scraping Search Results from Google Search

Scraping Search Results from Google Search

21 Nov 2018

Scraping search results from Google Search can be used for many things. It can be used for sentiment analysis, competitor analysis and search engine optimisation (SEO). In this post, I'll cover how to scrape Google search results for a start. Setting Up the Scope Firstly, we'll set up some parameters ...

Featured image for Error Handling in Selenium on Python

Error Handling in Selenium on Python

14 Oct 2018

Selenium is a very versatile web scraping tool that is accessible via multiple programming languages. It's distinguished from text-parsing scrapers like BeautifulSoup as it actually simulates a web navigation experience, enabling you to scrape website running on a lot of Javascript and iframes. That makes Selenium especially powerful when you ...