Coder Social home page Coder Social logo

dakidreturns / gochan Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 3.37 MB

A simple web scraper, written in go. No Additional dependencies required

License: MIT License

Go 100.00%
go golang webscraper no-dependencies beginner 4chan 4chan-downloader image-scraper

gochan's Introduction

gochan

Download images from 4chan

Features

  1. Download all the images from a 4chan forum.
  2. No dependincies, no extra modules required.
  3. You can import this package into your go project and use it

Building From the source (If you just want an image scrapper and nothing more)

  1. Ensure your go version is >= 1.16
  2. Clone the repository git clone https://github.com/DaKidReturns/gochan
  3. Go into the folder gochan $ cd gochan/example where you will find the example code as main.go
  4. Run go build -o gochan
  5. Now that you have compiled your source you can use it by $ ./gochan [4chan-urlname]

Using the module for your project

  1. Ensure your go version is >= 1.16

  2. Run the command go get github.com/DaKidReturns/gochan

  3. Use it in your project by the import statement

    import "github.com/DaKidReturns/gochan"

    or

    import(
     	"github.com/DaKidReturns/gochan"
     )

    it will be imported as gochan.

Future Plans

  1. Add a progress bar to show the currently downloading image
  2. Currently it saves the pictures to the Directory (HOME)/Pictures/Gochan and takes only one command line argument
  3. I plan to do something with concurrency in golang, like download multiple files at once. (after I learn concurrency in golang)
  4. Create better Documentation
  5. Add a Logging feature
  6. Add an option for saving to custom directories

Why did I do this?

  1. I wanted to learn golang
  2. I wanted to download all the images from a forum on 4chan the one that contains a lot of technical drawings

So I figured why not create a web scaper for it ;-)

gochan's People

Contributors

dakidreturns 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.