Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
# set the dir to the script location
cd "$(dirname "$0")"
# Load environment variables from .env
if [ -f .env ]; then
source .env
else
echo "Error: .env file not found."
exit 1
Hawk:6950
Hawk:6950
Hawk:6900
Dove:6775
Dove:6650
Hawk:6600
Dove:6500
Dove:6425
Hawk:6400
Dove:6375
@kyawkn
kyawkn / bookscraper.py
Created November 26, 2017 19:06
Python BeautifulSoup Scraper that scrapes book covers, titles and authors from www.goodreads.com
"""
Author @ Kyaw Khant Nyar
github: kyawkn
"""
import requests
import csv
from bs4 import BeautifulSoup as bs
import urllib
import os