Am I able to login and post something on a website using Tasker?

1,328 views
Skip to first unread message

Marcos Cruz

unread,
Sep 12, 2011, 1:40:19 PM9/12/11
to Tasker
Hi, I know this is a general question, I have been playing around with
Tasker since I bought it a couple of months ago and I would like some
help.

I would like to post an ad in a website (in spanish since I am
mexican), it is like a classifieds site to say something, and since I
have to do it every day, I would like to know if it is possible to do
it using tasker.

This is the login link:
http://www.vendobara.com/publicaranuncio.php

and once I successfully logged, this is the link where I post:
http://www.vendobara.com/publicarmianuncio.php

I created a test account so you can login if you need to:
UN: tasker
PWD: tasker

I just would like something like a guideline how to do it, I have seen
the HTTP POST and GET in Tasker but never used it and not sure if this
would help.

Thanks a lot! I appreciate it.

BossMan

unread,
Sep 12, 2011, 2:43:11 PM9/12/11
to tas...@googlegroups.com
You won't be able to do it in Tasker only (I believe it's on todo list though), as the http post/get actions a) do not allow to modify header fields, b) you can't read header fields either (and you need that, for getting authorization cookie after successful logging).
You might try doing this using an SL4A script (python?) combined with Tasker but it requires definitely more effort.

BR,
A.

Marcos Cruz

unread,
Sep 12, 2011, 2:58:59 PM9/12/11
to Tasker
I already have installed SL4A and python because I am using a script
to send an email using gmail... but since I am not good at
programming, I think I would need some basic instructions on how to
start... any ideas where could I check a python script to do what I
intend to do? Thanks

Matthieu Berthomé

unread,
Sep 13, 2011, 3:11:38 AM9/13/11
to tas...@googlegroups.com
Message has been deleted

Marcos Cruz

unread,
Oct 20, 2011, 5:47:25 PM10/20/11
to Tasker
I didn't try to build my own script until yesterday and after
struggling with it I did it:

You need SL4A, Python, Mechanize (http://wwwsearch.sourceforge.net/
mechanize/) and of course Tasker.

http://pastebin.com/je9CQnWD

Cheers

On Sep 13, 12:11 am, Matthieu Berthomé <matthieu.berth...@gmail.com>
wrote:
> If I were you I'd look up these linkshttp://stackoverflow.com/questions/189555/how-to-use-python-to-login-...http://stackoverflow.com/questions/3057276/pycurl-script-cant-login-t...https://groups.google.com/forum/#!forum/android-scripting

baudi

unread,
Oct 20, 2011, 6:01:19 PM10/20/11
to tas...@googlegroups.com
Very nice.
Reply all
Reply to author
Forward
0 new messages