Giter Club home page Giter Club logo

hackernews's Introduction

Hacker News

A Python-based CLI for working with Hacker News.

Requirements

Requirements can be installed directly by using:

pip install -r requirements.txt

Using hackernews

Help

hackernews.py -h

Cookies

By default, hackernews uses a built-in cookie system. It saves the file hackernews.cookie to the base directory. To disable the use of cookies:

hackernews.py <command> --no-cookies

When cookies are turned off, two additional requests are needed per-command to retrieve proper login info.

Saved items

Retrieve a user's latest saved items, and print the output as JSON (default):

hackernews.py saved -u 'username' -p 'password'

Retrieve all saved items, and print the output as XML (this might take a while):

hackernews.py saved --all -e xml -u 'username' -p 'password'

Help for the saved subcommand:

hackernews.py saved -h

Comments

Retrieve a user's comment threads, and print the output as JSON (default):

hackernews.py comments -u 'username' -p 'password'

Retrieve all comments, and print the output as XML (this might take a while):

hackernews.py comments --all -e xml -u 'username' -p 'password'

Don't show owner's comments (the logged-in user); this is useful for a feed of replies to your comments:

hackernews.py comments --no-owner -u 'username' -p 'password'

Help for the comments subcommand:

hackernews.py comments -h

hackernews's People

Contributors

nicksergeant avatar zalew avatar yuvadm avatar

Watchers

James Cloos avatar dave marchant 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.