GithubHelp home page GithubHelp logo

iloveptt's Introduction

iloveptt 我愛批踢踢

GitHub license Build Status Go

A ptt crawler client to browse broad news and download image if any default image in that article. This tool help you to download those photos for your backup, all the photos still own by original creator.

  • It support multiple platform such as "Windows 8.1" and "MacOS X".

Install

go get -u -x github.com/kkdai/iloveptt

Usage

iloveptt  

All the photos will download to USERS/Pictures/iloveptt and it will separate folder by article name.

For Windows user, it will store in your personal pictures folder.

Options

  • -w number of workers. (concurrency), default workers is "25"

Interactive Command

It support command line interactive command as follow:

  • n: Display next page aticles.
  • p: Display previous page articles.
  • o: Open content folder in finder.
  • d number: Download article image with specific index, currently it support single index.
  • quit: Exist current application.

Examples

Download all photos from Scottie Pippen facebook pages with 10 workers.

    //Run app.
    iloveptt -w=10
    
    0:[1★][正妹] 勇敢的女孩
    1:[0★](本文已被刪除) [ao3sm345]
    2:[0★](本文已被刪除) [chuhengyi820]
    3:[0★](本文已被刪除) [titan3417]
    4:[8★][公告] 不願上表特 & 優文推薦 & 檢舉建議專區
    ......
    >ptt>

    //Download index [5].
    d 5
    
    //quit application
    quit

Snapshot

image

TODOs

Welcome to file your suggestion in issues.

Inspired

This project inspired from https://github.com/tzangms/iloveck101. And I refer those implements as follow:

Contribute

Please open up an issue on GitHub before you put a lot efforts on pull request. The code submitting to PR must be filtered with gofmt

Related Project

An Instagram photo downloader also here. https://github.com/kkdai/goInstagramDownloader

An Facebook Album downloader also here. https://github.com/kkdai/goFBPages

Advertising

If you want to browse facebook page on your iPhone, why not check my App here :p 粉絲相簿

Gomobile for iloveptt?

Check my new package PhotoMgr if you want to use in iOS/Android.

A simple iOS App for this is on PhotoViewer

Project52

It is one of my project 52.

License

This package is licensed under MIT license. See LICENSE for details.

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.