Coder Social home page Coder Social logo

post-check's Introduction

Prerequisites

  • Python 3.6 and above
  • install requirements (use: pip install -r requirements.txt)

Usage

For Basic usage just enter your package number:

python ./post-check.py -pn RH080789165GB

Should output:

      Date                                                             Description    Postal Unit            City
23/04/2020                            Unclaimed and will be returned to the sender      Zemenhoff  Tel Aviv Yaffo
29/03/2020                              A second notice was left for the addressee      Zemenhoff  Tel Aviv Yaffo
23/03/2020                                     A notice was left for the addressee      Zemenhoff  Tel Aviv Yaffo
19/03/2020  Arrived at the postal unit for delivery to addressee (shelf no ื’-3170)      Zemenhoff  Tel Aviv Yaffo

For extended usage see:

usage: post-check.py [-h] -pn PACKAGE_NUMBER [-ih] [-pj] [-cf COOKIE_FILE]

optional arguments:
  -h, --help            show this help message and exit
  -pn PACKAGE_NUMBER, --package-number PACKAGE_NUMBER
                        Package number
                        Optionally, the PKG environment variable may be used instead
  -ih, --is-heb         Print in hebrew
  -pj, --print-json     Print json instead of table
  -cf COOKIE_FILE, --cookie-file COOKIE_FILE
                        Cookie file

This code can be automated with cron if you want to check your package status each day.

Don't spam the post-il site!

TODO list

  • Check multiple packages in one command
  • Save cache of previous status of package and update only if that status changed

post-check's People

Contributors

yoavramon avatar barnhartguy avatar dependabot[bot] 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.