https://github.com/nlitsme/4chantool
Commandline tool for investigating 4chan discussions.
https://github.com/nlitsme/4chantool
4chan python scraping
Last synced: 3 months ago
JSON representation
Commandline tool for investigating 4chan discussions.
- Host: GitHub
- URL: https://github.com/nlitsme/4chantool
- Owner: nlitsme
- License: mit
- Created: 2023-04-13T09:04:32.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-08-22T20:06:41.000Z (over 2 years ago)
- Last Synced: 2025-09-13T01:30:05.033Z (4 months ago)
- Topics: 4chan, python, scraping
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
4chan tool
==========
A commandline tool for querying 4chan
Usage
=====
First you will have to create a configuration file in your `HOME` directory called `.4chan4c`, with the following:
[cloudfare]
clearance=.....cf_clearance.cookie........
useragent=.....user-agent-string....
You can find both by looking at requests sent by your browser, in the browser debug-console.
Examples:
python3 4chan.py -b pol --threads
python3 4chan.py --search SomeQuery
Full usage:
usage: 4chan.py [-h] [--debug] [--verbose] [--boards] [--board BOARD] [--cachedir CACHEDIR]
[--threads] [--catalog] [--archive] [--stats] [--search SEARCH]
[--config CONFIG] [--cfuseragent CFUSERAGENT] [--cfclearance CFCLEARANCE]
List 4chan comments
options:
-h, --help show this help message and exit
--debug, -d print all intermediate steps
--verbose, -v
--boards, -l list boards
--board BOARD, -b BOARD
specify board
--cachedir CACHEDIR, -c CACHEDIR
Specify a different cache directory
--threads list threads for board
--catalog list threads from catalog for board
--archive list threads from archive for board
--stats show post keyword stats
--search SEARCH forum search
--config CONFIG specify configuration file.
--cfuseragent CFUSERAGENT
--cfclearance CFCLEARANCE
Author
======
Willem Hengeveld
itsme@xs4all.nl