Skip to content

Instantly share code, notes, and snippets.

View mainul-islam-faruqi's full-sized avatar
🎯
Focusing

Md. Mainul Islam (Faruqi) mainul-islam-faruqi

🎯
Focusing
View GitHub Profile
@bradtraversy
bradtraversy / blogscraping.py
Created July 29, 2018 12:02
Simple scraping of a blog
import requests
from bs4 import BeautifulSoup
from csv import writer
response = requests.get('http://codedemos.com/sampleblog/')
soup = BeautifulSoup(response.text, 'html.parser')
posts = soup.find_all(class_='post-preview')