Skip to content

Commandline tool for investigating 4chan discussions.

License

Notifications You must be signed in to change notification settings

nlitsme/4chantool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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

[email protected]

About

Commandline tool for investigating 4chan discussions.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages