Coder Social home page Coder Social logo

4chan-swift's Introduction

4chan-Swift

Browse 4chan like a boss with a Swift API.

Based on 4chan-API.

Swift API Usage

Import the files from the API folder to your project and you're good to go !

Use it just like a regular URLSession dataTask...

let session = URLSession.shared // You also could use your own session

let board = "wg" // The board you want
let threadNum = 6942115 // The thread #
session.chanTask(board, thread: threadNum) { (thread, response, error) in
	// just use the ChanThread object named thread here ๐Ÿ˜‹
}.resume()

Or

let page = 3 // the page you want to load
session.chanTask(board, page: page) { (page, response, error) in
	// just use the ChanPage object named page here ๐Ÿ˜‹
}.resume()

Command-Line Tool

Installation

git clone https://github.com/mattlawer/4chan-Swift.git
cd 4chan-Swift
make
make install

Usage

Usage : 4chan -b <board> [-t <thread> | -p <page>]
	-b <board> : 
	-t <thread> : the thread nยฐ
	-p <page> : the board page to load
	-h show this help screen
	
example:
	4chan -b r -t 123456789

4chan-swift's People

Contributors

mattlawer avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.