LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 02-08-2007, 04:12 AM   #1
condonm
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, 06:34 AM   #2
wjevans_7d1@yahoo.co
Member
 
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 31
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:

http://www.eskimo.com/~scs/cclass/

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

http://beej.us/guide/bgnet/

... 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:

http://en.wikipedia.org/wiki/Proxy_server

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

http://freshmeat.net/projects/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.
 
  


Reply


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 02:14 AM
I made a shortcut to a shell script and it is using default shell icon... shlinux Linux - Software 2 04-20-2006 06:29 AM
Create a shell Script that log in as root mashed Linux - Newbie 1 04-08-2006 04:13 AM
Alias or shell script to confirm 'exit' commands from a shell rose_bud4201 Programming 2 03-08-2006 02:34 PM
shell script problem, want to use shell script auto update IP~! singying304 Programming 4 11-29-2005 05:32 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:50 PM.

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