A command line application that allows a user to choose a 4Chan board (default: Wallpapers), search for keywords, then choose a thread to browse.
After choosing a thread, a GUI application opens which allows the user to browse through all of the images in that thread, and download the images of their choice.
Note - the pyglet-fixed folder is a hand-rolled modification of Pyglet that prevents crashes under specific circumstances.
- The user is prompted for a board, enters keywords to search, and selects a thread from the provided search-list. The search-list is created using
find_threadfunction, which crawls the chosen board and finds each instance of the keyphrase provided. - When a thread is chosen, the
list_imagesfunction is ran, which fetches a list of all the images from the selected thread. - The
cache_imagesfunction is ran asyncronously, which uses the list of images and downloads each, adding them to thecachefolder. - After a brief 1 second delay (to allow the cacher to cache the first image), the
startfunction is executed which opens an interactive Pyglet GUI, allowing the user to navigate, rotate, play, and save images/gifs from the selected thread.
- Pyglet - Used for the GUI. Modified to prevent crashes under specific circumstances.
- Requests/urllib.request - Used to scrape the chosen board / download files.
- threading (python stl) - Used to download images asyncronously.
- html (python stl) - Used to unescape thread titles.
- webbrowser (python stl) - Used to open thread/image in the default web browser.
This project is licensed under the MIT License - see the LICENSE file for details





