Skip to content

Instantly share code, notes, and snippets.

View impshum's full-sized avatar
:octocat:
Loading...

impshum

:octocat:
Loading...
View GitHub Profile
@impshum
impshum / xkcd.py
Last active June 14, 2018 09:58
Download all xkcd comics
# Create a directory called comics next to the script first
import requests
n = 933
while True:
if n == 404:
n += 1
url = 'https://xkcd.com/{}/info.0.json'.format(n)
r = requests.get(url)
@Krazybug
Krazybug / omercy.py
Last active February 27, 2023 14:19
O'Reilly free ebooks downloader
'''
O'Meirrcy !!!! Download free ebooks from O'Reilly
Usage:
> git clone https://gist.github.com/Krazybug/1ae50814d25b0a1d862dfdf7161ee503
> mv 1ae50814d25b0a1d862dfdf7161ee503 omercy
> cd omercy
> pip install requests
> pip install bs4
> python omercy.py