Featured Content Ads
add advertising here
http://www.apache.org/licenses/LICENSE-2.0.html” rel=”nofollow”>
Coworker who sees me one thing in a browser: “Chuffed that you just might perchance furthermore be not busy; I need you to fetch that, this, this…”
Coworker who sees me staring carefully at a describe suggested: Backs away, slowly…
Test out the haxor-news
dialogue on this Hacker Knowledge put up.
haxor-news
brings Hacker Knowledge to the terminal, allowing you to leer/filter the next with out leaving your describe line:
- Posts
- Put up Comments
- Put up Linked Web Stammer
- Monthly Hiring and Freelancers Posts
- User Files
- Onions
haxor-news
helps you filter the helpful choice of comments that smartly-liked posts generate.
- Are trying to develop handiest beforehand unseen comments?
-cu/--comments_unseen
- How about most up-to-date comments posted within the past 60 minutes?
-cr/--comments_recent
- Filter comments matching a regex inquire of?
-cq/--comments_query [query]
Featured Content Ads
add advertising hereJob hunting or marvelous involving what’s accessible? Filter the monthly who’s hiring and freelancers put up:
$ hn hiring "(?i)(Node|JavaScript).*(faraway)" > remote_web_jobs.txt
Combine haxor-news
with pipes, redirects, and other describe line utilities. Output to pagers, write to recordsdata, automate with cron, and tons others.
haxor-news
comes with a to hand not compulsory auto-completer with interactive help:
Index
Total
Functions
- Peep Posts
- Peep a Put up’s Linked Web Stammer
- Peep and Filter a Put up’s Comments
- Peep and Filter the Monthly Hiring Put up
- Peep and Filter the Monthly Freelancer Put up
- Combine With Pipes and Redirects
- Peep User Files
- Peep Onions
- Peep Outcomes in a Browser
- Windows Pork up
Installation and Assessments
Misc
Syntax
Utilization:
Optionally, that you just might perchance allow fish-vogue completions and an auto-completion menu with interactive help:
If on hand, the auto-completer furthermore mechanically shows comments via a pager.
All over the auto-completer, the same syntax applies:
Customizable Highlighting
You are going to be ready to govern the ansi colours feeble for highlighting by updating your ~/.haxornewsconfig
file.
Coloration alternate ideas consist of:
'dim', 'crimson', 'inexperienced', 'yellow',
'blue', 'magenta', 'cyan', 'white'
For no coloration, advise the price(s) to None
.
Commands
Peep Posts
Peep the High, Simplest, Repeat, Establish a inquire of to, Jobs, New, and Onion posts.
Utilization:
$ hn [command] [limit] # put up limit default: 10
Examples:
Peep a Put up’s Linked Web Stammer
After viewing a listing of posts, that you just might perchance leer a put up’s linked websites by referencing the put up #
.
The HTML contents of the put up’s hyperlink are formatted for straightforward-viewing inside of your terminal. If on hand, the formatted output is sent to a pager.
Stare the Peep in a Browser allotment to leer the contents in a browser as a replacement.
Utilization:
Example:
Peep and Filter a Put up’s Comments
Peep All Comments
After viewing a listing of posts, that you just might perchance leer a put up’s comments by referencing the put up #
.
Examples:
If working with the auto-completer, comments are mechanically paginated. To accumulate the same pagination with out the auto-completer, append | less -r
:
Filter on Unseen Comments
Filter comments to develop handiest these that you just might perchance furthermore own not yet seen. Unseen comments are denoted with a [!]
and are fully expanded.
Viewed comments will be truncated with […] and ought to be confirmed to help provide context to unseen comments.
Examples:
$ hn leer 8 -cu
$ hn leer 8 --comments_unseen | less -r
Filter on Most modern Comments
Filter comments to develop handiest these posted inside of the past 60 minutes.
Older comments will be truncated with […] and ought to be confirmed to help provide context to most up-to-date comments.
Examples:
$ hn leer 8 -cr | less -r
$ hn leer 8 --comments_recent
Filter with Regex
Filter comments in step with a given recurring expression inquire of.
Examples:
$ hn leer 2 -cq "(?i)programmer" | less -r
$ hn leer 2 --comments_regex_query "(?i)programmer" > programmer.txt
Case insensitive regex: (?i)
Disguise Non-Matching Comments
When filtering comments for unseen, most up-to-date, or with regex, non-matching comments are collapsed to invent context. To as a replacement hide non-matching comments, cross the -ch--comments_hide
flag. Hidden comments will be displayed as .
.
Example:
$ hn leer 8 -cu -ch | less -r
Filter the Monthly Hiring Put up
Hacker Knowledge hosts a monthly hiring put up the keep employers put up the most contemporary job openings.
Utilization:
$ hn hiring [regex filter]
Examples:
$ hn hiring ""
$ hn hiring "(?i)JavaScript|Node"
$ hn hiring "(?i)(Node|JavaScript).*(faraway)" > remote_jobs.txt
Case insensitive regex: (?i)
To pass trying a recurring monthly hiring put up as antagonistic to the most contemporary, use the hiring put up identity.
Utilization:
$ hn hiring [regex filter] [post id]
Filter the Freelancers Put up
Hacker Knowledge hosts a monthly freelancers put up the keep employers and freelancers put up availabilities.
Utilization:
$ hn freelance [regex filter]
Examples:
$ hn freelance ""
$ hn freelance "(?i)JavaScript|Node"
$ hn freelance "(?i)(Node|JavaScript).*(faraway)" > remote_jobs.txt
Case insensitive regex: (?i)
To pass trying a recurring monthly hiring put up as antagonistic to the most contemporary, use the hiring put up identity.
Utilization:
$ hn freelance [regex filter] [post id]
Combine With Pipes and Redirects
Output to pagers, write to recordsdata, automate with cron, and tons others.
Examples:
$ hn leer 1 -c | less
$ hn freelance "(?i)(Node|JavaScript).*(faraway)" > remote_jobs.txt
Peep User Files
Utilization:
Peep Onions
Utilization:
$ hn onion [limit] # put up limit default: all
Peep in a Browser
Peep the linked websites or comments in your default browser as a replacement of your terminal.
Utilization:
haxor-news
has been examined on Windows 10.
Pager Pork up
Pager make stronger on Windows is extra puny as discussed within the next designate. Users can remark output to a pager with the | extra
describe:
Config File
On Windows, the .haxornewsconfig
file might perchance furthermore be found in %userprofile%
. For instance:
C:Usersdmartin.haxornewsconfig
cmder
and conemu
Even supposing you might perchance well utilize the regular Windows describe suggested, you can seemingly own a better expertise with both cmder or conemu.
Installation
Pip Installation
haxor-news
is hosted on PyPI. The following describe will install haxor-news
:
You are going to be ready to furthermore install the most contemporary haxor-news
from GitHub offer which might perchance possess changes not yet pushed to PyPI:
$ pip install git+https://github.com/donnemartin/haxor-news.git
When you happen to ought to not placing in in a virtualenv, bustle with sudo
:
$ sudo pip install haxor-news
Once save in, bustle the not compulsory haxor-news
auto-completer with interactive help:
Scamper instructions:
It’s counseled that you just put in Python purposes in a virtualenv to sustain a ways from doubtless concerns with dependencies or permissions.
To leer haxor-news
virtualenv
installation instructions, click on here.
Mac OS X 10.11 El Capitan Users
There is a identified scenario with Apple and its incorporated python bundle dependencies (extra recordsdata at https://github.com/pypa/pip/concerns/3165). We are investigating ways to repair this scenario but for the time being, to put in haxor-news, that you just might perchance bustle:
$ sudo pip install haxor-news --give a enhance to --ignore-save in six
Supported Python Variations
- Python 2.6
- Python 2.7
- Python 3.3
- Python 3.4
- Python 3.5
- Python 3.6
- Python 3.7
Supported Platforms
- Mac OS X
- Examined on OS X 10.10
- Linux, Unix
- Examined on Ubuntu 14.04 LTS
- Windows
- Examined on Windows 10
Developer Installation
When you happen to might perchance furthermore be drawn to contributing to haxor-news
, bustle the next instructions:
Trusty integration minute print are on hand on Travis CI.
Unit Assessments and Code Coverage
Scamper unit tests in your active Python atmosphere:
$ python tests/run_tests.py
Scamper unit tests with tox on multiple Python environments:
Documentation
Provide code documentation will rapidly be on hand on Readthedocs.org. Test out the offer docstrings.
Scamper the next to construct up the medical doctors:
Contributing
Contributions are welcome!
Overview the Contributing Pointers for minute print on :
- Put up concerns
- Put up pull requests
Credit
- click on by mitsuhiko
- haxor by avinassh
- html2text by aaronsw
- python-suggested-toolkit by jonathanslenders
- requests by kennethreitz
Contact Files
Feel free to contact me to discuss any concerns, questions, or comments.
My contact recordsdata might perchance furthermore be found on my GitHub online page.
License
I am providing code and sources on this repository to you under an initiate offer license. Because here’s my private repository, the license you fetch to my code and sources is from me and not my employer (Fb).
Copyright 2015 Donne Martin
Licensed under the Apache License, Model 2.0 (the "License");
that you just might perchance furthermore not use this file with the exception of in compliance with the License.
It's doubtless you'll furthermore fetch a reproduction of the License at
http://www.apache.org/licenses/LICENSE-2.0
Until required by appropriate legislation or agreed to in writing, blueprint
dispensed under the License is dispensed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS O