Python

BeautifulSoup vs. Rvest

This post will compare Python's BeautifulSoup package to R's rvest package for web scraping. We'll also talk about additional functionality…

5 years ago

Web Browsing and Parsing with RoboBrowser and requests_html

Background So you've learned all about BeautifulSoup. What's next? Python is a great language for automating web operations. In a…

5 years ago

All about Python Sets

See also my tutorials on lists and list comprehensions. Background on sets A set in Python is an unordered collection…

5 years ago

3 ways to scrape tables from PDFs with Python

This post will go through a few ways of scraping tables from PDFs with Python. To learn more about scraping…

5 years ago

How to get options data with Python

In a previous post, we talked about how to get real-time stock prices with Python. This post will go through…

6 years ago

Why defining constants is important – a Python example

This post will walk through an example of why defining a known constant can save lots of computational time. How…

6 years ago

Scraping data from a JavaScript webpage with Python

This post will walk through how to use the requests_html package to scrape options data from a JavaScript-rendered webpage. requests_html…

6 years ago

2 packages for extracting dates from a string of text in Python

This post will cover two different ways to extract dates from strings with Python. The main purpose here is that…

6 years ago

Intro to Python Course

For anyone in the NYC area, I am offering an in-person introductory Python course on January 7th, 2019. The description…

6 years ago

How to measure DNA similarity with Python and Dynamic Programming

*Note, if you want to skip the background / alignment calculations and go straight to where the code begins, just…

6 years ago