8.18
top
← prev up next →

4chan API Client LibraryπŸ”— i

yotsubAPI is an interface to the 4chan JSON API. The catalog is a list of threads and the threads are hasheq ’s.

1ProceduresπŸ”— i

procedure

( 4chan-data boardx)(listofhash-eq? )

board:string?
x:(or/cstring? number? )
This procedure is used as the backbone for many other procedures.

It takes a board identifier (e.g. "g" or "a") and either a thread number or the string "catalog".

procedure

( 4chan-data-page boardn)(listofhash-eq? )

board:string?
This procedure takes a board identifier as a string and a page number and returns a list of hashes with information about the page.

procedure

( 4chan-data-catalog board)(listofhash-eq? )

board:string?
This procedure takes a board identifier and returns a list of hashes containing information about that board’s catalog.

procedure

( 4chan-data-thread boardid)(listofhash-eq? )

board:string?
id:number?
This procedure takes a board identifier and a thread number and returns a hasheq containing the information about that thread.

procedure

( 4chan-catalog-search catalogpattern)(listofhash-eq? )

catalog:hash-eq?
This procedure takes a list of hashes (created from running 4chan-data-catalog ) and a regexp pattern to search and returns a hasheq containing the search results.

procedure

( 4chan-thread-match-fn pattern)procedure?

This procedure is a helper procedure where you provide a pattern and it will return a procedure that you apply to a thread’s hasheq .

thread:hash-eq?
This procedure is a helper procedure takes takes a thread’s hasheq and will return a boolean value.

catalog:(listofhash-eq? )
This procedure takes a catalog’s hasheq and returns the hasheq for the first Lisp General it finds, if it exists.

procedure

( 4chan-thread-url boardthread)string?

board:string?
thread:hash-eq?
This procedure takes a board identifier and a thread’s hasheq and returns its URL as a string.

top
← prev up next →

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /