Skip to content

Instantly share code, notes, and snippets.

View Sinchit's full-sized avatar

Sinchit Rajput Sinchit

  • Toronto
View GitHub Profile
import requests
import re
from bs4 import BeautifulSoup
from clint.textui import progress
# Url of the article
article_url = "https://towardsdatascience.com/springer-has-released-65-machine-learning-and-data-books-for-free-961f8181f189"
html_request = requests.get(article_url)
beautifulSoup = BeautifulSoup(html_request.content, "html.parser")
# Regular expression that matches the ISBN
isbn_regex = r'(\d{3}-\d{1}-\d{3}-\d{5}-\d{1})'