Skip to content

Instantly share code, notes, and snippets.

@sferacu
sferacu / getbook.py
Last active October 2, 2018 11:23 — forked from skyronic/getbook.py
Get a book from google books
#!/bin/python
import re, requests, logging, os, json
logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.DEBUG)
BOOK_ID = "duk7k-YoYwEC"
PROXY = None
USER_AGENT = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.64 Safari/537.1"
COOKIE = "GA1.3.617046422.1538474875"
HEADERS = {
### Keybase proof
I hereby claim:
* I am sferacu on github.
* I am jnr432 (https://keybase.io/jnr432) on keybase.
* I have a public key ASCnHF6uFU09iC_erN2nvPan9-kCplA-FAdWZV2q3s802go
To claim this, I am signing this object: