A web4mail server accept web requests by mail and sends them back as an attachment.
In this case we use get@dameweb.info but any other could be easily supported.
Wpy is a command line tool, it gets easier to do Google searchs and request pages from the terminal.
Wpy build the request, connects to the smtp server (using our config), and sends the mail to the w4mail server.
Wpy was built to use when you have no connection to the internet but a mail account.
Any OS with Python 2.5 or higher.
Get wpy:
https://raw.github.com/xr09/wpy/master/w.py
Copy the file anywhere on your home folder, here we assume is $HOME/apps/wpy
$ [ -d $HOME/.apps/wpy ] || mkdir -p $HOME/.apps/wpy $ mv w.py $HOME/.apps/wpy/ $ chmod +x $HOME/.apps/wpy/w.py
Create config file:
$ touch $HOME/.wpy.cfg $ chmod 600 $HOME/.wpy.cfg
Edit
.wpy.cfg
(example):[default] user=mail_user password=password mailserver=somemail.com
Create alias to use
w.py
:$ cat >> $HOME/.bashrc <<EOF alias wpy='python $HOME/apps/wpy/w.py' EOF
Start a fresh terminal and try
wpy
.Try wpy:
$ wpy -h Options: -h, --help show this help message and exit -g, --google Google Search ...
Simple google search:
$ wpy python Page requested: http://www.google.com/search?q=python
Request specific page:
$ wpy http://www.python.org/ Page requested: http://www.python.org/
Twitter search:
$ wpy -t android Engine: Twitter Key Words: android
Wikipedia search:
$ wpy -w android Engine: Wikipedia (English) URL: http://en.wikipedia.org/wiki/Special:Search?search=android
In some minutes depending of server load you should receive a reply.