ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
Rep:
Automatic cpanel login
I am involved with a number of websites which are on free hosts. A lot of these free hosts expect a regular login to their cpanel or forum to keep the sites open.
At the moment I regularly log in to keep the sites available but sometimes miss the required login frequency and have to get the providers to reinstate the site.
This is a pain. I have thought about writing an autologin procedure (perhaps a bash script involving curl,wget or something or perhaps python) based on a cron job to automate this procedure.
Has anyone seen such a utility anywhere or any relevant information ? I cannot figure out how to get the right url for the logins.
If the login page is stuffed with some JavaScript that requires some processing on the client side in order to log in getting the proper URLs and Cookies may be severe pain in the ass. Personally I have never heard of a tool that could scrap the page and analyze the login process automatically. If you are really crazy (lazy) you could use one of the desktop automation tools to record macros and just play them when needed. I have a positive experience with the tool called "Desktop Macros" from xStarter Solutions. From what I remember it was free.
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
Original Poster
Rep:
Thanks for the reply.
Quote:
If the login page is stuffed with some JavaScript that requires some processing on the client side in order to log in getting the proper URLs and Cookies may be severe pain in the ass.
I know that this is an old thread but I came upon it doing a Google search looking for the same exact script and I found what your looking for. This works great and I've tested it:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.