Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 02-08-2007, 05:12 AM   #1
LQ Newbie
Registered: Feb 2007
Location: San Francisco
Distribution: Suse 10.1
Posts: 1

Rep: Reputation: 0
Shell Script For Myspace Log in

So I want to make a script that would automatically log into myspace for me without using a web browser and then check to see if I have any ________s (that being what ever I want it to be, messages, friend requests, etc). So I was curious if anyone knows if this is evenly remotely possible.... If you have any info on this that would greatly appreciated! Also i'm willing to venture beyond shell scirpts for this (if you know that this function could be done with another programming language info on that would be useful!)
Old 02-08-2007, 07:34 AM   #2
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 30
It's probably doable, but you'll have to go far, far beyond shell scripts. I see three steps.

Step one: learn C, and learn about network programming.

A good, thorough C tutorial:

There are several good online tutorials for network programming. Here's one:

... but if you get really hip deep into network programming, you're eventually going to want to spring a few bucks and get volume 1 of _Unix Network Programming_, by W. Richard Stevens. He's dead now, but he was a giant in the field. The latest edition of this book is written by others, but the book is still under his name. The publisher is Addison-Wesley.

Step two in this process is to do what I did:

Learn a little about web proxies. Then download the source for a relatively simple web proxy, rip out what isn't interesting, and rewrite the rest to fit your style. Add a capability to log to disk all traffic that goes back and forth (perhaps all traffic under only certain conditions, so you're not examining tons of unrelated data).

Sounds outrageous? I did it, and learned a lot.

Learn about web proxies here:

The proxy I chose, after looking at several, was privoxy:

Step three: configure your web browser to go through your modified proxy, go to myspace to get the information you need, figure out how myspace sends that data back and forth, and then write your own specialized client in C.

This specialized client will probably never save you enough time to make up for all the time you spent doing what I suggested, but you'll learn a lot along the way.

Hope this helps.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell Scripting: Getting a pid and killing it via a shell script topcat Programming 15 10-28-2007 03:14 AM
I made a shortcut to a shell script and it is using default shell icon... shlinux Linux - Software 2 04-20-2006 07:29 AM
Create a shell Script that log in as root mashed Linux - Newbie 1 04-08-2006 05:13 AM
Alias or shell script to confirm 'exit' commands from a shell rose_bud4201 Programming 2 03-08-2006 03:34 PM
shell script problem, want to use shell script auto update IP~! singying304 Programming 4 11-29-2005 06:32 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration