Skip to content
Reverse image/video search for reddit
Python JavaScript HTML CSS
Branch: master
Clone or download
Pull request Compare This branch is 70 commits ahead of ohhdemgirls:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
static
templates
.gitignore
DB.py
Httpy.py
LICENSE
README.md
app.py
common.py
demo.gif
img_util.py
index.py
rabbitmq_listen.py
reddit.py
requirements.txt
search.py
status.py
subreddits.py
subs.txt
update_clean_url.py
update_hash.py
upload.py
util.py
video_thumbs.py
video_util.py

README.md

irarchives

CodeFactor GitHub

Summary

Reverse image/video search for reddit

demo Realtime dhash demo. The hash (on the right) is stored as a 144-bit integer. We can compute the similarity of two images by counting the number of matching bits of their hashes.

Overview

The repo contains:

  • A script to scrape images from reddit posts and store the data in a database.
  • A web interface for searching the database

Database schema

schema

Requirements

Tested with Python 3.7.2.

Dependencies on Debian: apt install libgmp-dev libmpfr-dev libmpc-dev

This project relies on Architeuthis MITM proxy to respect rate-limits and handle http errors.

Additional C-Language functions for PostgreSQL need to be installed for almost all queries.

The search interface can be configured to use redis for caching (see common.py).

You can’t perform that action at this time.