Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
'''
Fetch and decode the links from a subreddit when they are encoded in base64 (until 3 pass)
Installation:
You need python 3.8 installed
Save the pastebin as a file i.e "redscrape.py" and open a terminal where the file is located
> python3 -m venv . # On Mac
@Krazybug
Krazybug / opendir.md
Created October 15, 2022 18:54 — forked from jermspeaks/opendir.md
Manually Searching OpenDirectories on Google

Manually Searching OpenDirectories on Google

For videos/movies/tvshows :

intext:\"Search Term\" intitle:\"index.of\" +(wmv|mpg|avi|mp4|mkv|mov) -inurl:(jsp|pl|php|html|aspx|htm|cf|shtml)

Images :

@Krazybug
Krazybug / calishot-howto.md
Last active March 22, 2024 19:28
Calishot Howto

What is it ?

CALISHOT is a specialised search engine to unearth books on open calibre servers.

It allows you to search ebooks in full text across them or to browse the database by facets: authors, language, year, series, tags ... You can even run your own queries in SQL.

Where is this ?

These servers are often up and down so, for now, the data are regularly updated and new snasphots are posted on ...

@Krazybug
Krazybug / readme.md
Last active February 28, 2022 18:17
CALISHOT's deployment guide

CALISHOT deployment instructions

You need a recent installation of python (3.x)

  1. Install poetry, datasette and its plugins
poetry new calishot
poetry shell
poetry add datasette
@Krazybug
Krazybug / download.py
Last active July 28, 2019 18:17 — forked from wy193777/download.py
Download file through HTTP using requests.py and tqdm
import requests
from tqdm import tqdm
def download_from_url(url, dst):
"""
@param: url to download file
@param: dst place to put the file
"""
file_size = int(urlopen(url).info().get('Content-Length', -1))
if os.path.exists(dst):
#!/usr/bin/env python3
'''
calisuck: index, filter-out smartly and download ebooks from Calibre open directories
Installation:
You need python 3.5 installed
Download the file as a zip and unzip-it and get into the dir
@Krazybug
Krazybug / README.md
Created August 29, 2018 09:15 — forked from santiagobasulto/README.md
Download HumbleBundle books in batch with a simple Python script.

Download HumbleBundle books

This is a quick Python script I wrote to download HumbleBundle books in batch. I bought the amazing Machine Learning by O'Reilly bundle. There were 15 books to download, with 3 different file formats per book. So I scratched a quick script to download all of them in batch.

(Final Result: books downloaded)

@Krazybug
Krazybug / calibre-opendir-bot.py
Created June 25, 2018 22:11
calibre-opendir-bot.py
import requests
import json
import os
import humanfriendly
server='http://207.244.104.206:8080/'
max_size=0
#max_size=10*1024*1024
@Krazybug
Krazybug / calibre-sucker.py
Created June 25, 2018 22:08
Calibre Downloader
import requests
import json
import os
import time
# - traiter les formats en stockant le hash du fichier
# - capturer les exceptions
# - mettre un cli
# - autoriser 3 modes: update metadata, update file et append filename
# - une query pou la recheche exemple http://localhost:8080/ajax/search?sort=id&sort_order=desc
@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