GithubHelp home page GithubHelp logo

python_webscraping_overview's Introduction

Getting Started Web Scraping in Python

As a recent data science bootcamp grad, I now feel pretty comfortable tackling any web scraping problem. However, this definitely was not the case a month ago. I remember one of my classmates was scraping everything in our second 3-week unit, while I had barely even looked at it. So in an attempt to level up, I checked out the documentation and gave it a go. Unlike many open-source libraries for python, the Selenium documentation was far from perfect and on top of that, all of the tutorials were dated. Now many tutorials and attempts later, I feel well suited to face any challenge. To help with the start-up challenges, I decided to give an overview of how to get started and share the resources that helped me the most!

This will not be an exhaustive overview of all the resources at your disposal with python, but it should be enough to help you in the beginning. The two tools I will be going over in this post are Beautiful Soup (utilizing Requests) and Selenium. The only other major option you have available is Scrapy. First, we will go over Beautiful Soup, then Selenium, and in the end, we will bring them together! Along the way, I will discuss the pros and cons of both. 

Part 1: Beautiful Soup

Beautiful Soup is a great resource, and more often than not it will be the one that you will use. It is a python package that is used to parce HTML and XML. It has some pitfalls when it comes to dynamic websites, which is when we will make use of Selenium, however it should be the first resource you turn to!

Part 2: Selenium

mention that most of the time when you think Selenium is needed, it's not

Part 3: Bring it all Together

python_webscraping_overview's People

Contributors

elenasm7 avatar

Stargazers

julionoel avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.