View packt_books.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# https://gist.github.com/kspeeckaert/9d8bec27692432772913 | |
# bs4, lxml, pathlib | |
from pathlib import Path | |
import logging | |
import re | |
import requests | |
from bs4 import BeautifulSoup | |
username = "" |