This Python script, iaa-phone
, serves as the white pages of the Institute of Astrophysics of Andalusia (CSIC, Spain). It is a command-line application that queries the website in order to find the telephone number given a name or surname. Associate researchers are also included in the search, unlike visiting ones, which are not currently listed in the general alphabetical list.
The reverse telephone directory (grey pages) is also available, as searches may also be done by the phone number or e-mail address.
All searches are case- and accent-insensitive.
$ phone ter
Cafetería IAA | | 565 |
Terrón Salas, Víctor Francisco | UDIT | 605 | vterron
Cafetería UDIT | | 571 |
[...]
Include multiple terms to restrict the search results:
$ phone vic ter
Terrón Salas, Víctor Francisco | UDIT | 605 | vterron
People can also be looked up by phone number:
$ phone 605
Terrón Salas, Víctor Francisco | UDIT | 605 | vterron
Download the tarball:
$ curl -OL https://github.com/vterron/iaa-phone/tarball/master
Or, download the zipball:
$ curl -OL https://github.com/vterron/iaa-phone/zipball/master
Once you have a copy of the source, installing the script is a simple matter of running one command from a terminal:
$ python setup.py install
If you do not have root permissions, include the --user
option:
$ python setup.py install --user
The Python docs have an entire section devoted to Installing Python Modules.