Is there a good scripting tutorial for beginners?

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
circularL7
Posts: 112
Joined: Sat 02 Feb 2013, 07:26

Is there a good scripting tutorial for beginners?

#1 Post by circularL7 »

Hey, all.

I want to write a script. (Actually, I want to write lots of scripts, but I should probably start with just one:) I download many web pages for off line reading. Frequently, the information that I want from a site is spread over multiple pages; a multi-page thread is an example of this. I would like my script to automatically download all the related pages of a chosen subject.

My first questions: it seems to me that this is a task that's suited to a browser add-on. Is that conclusion accurate?

Second question: can an add-on be written in bash?

Third question: if an add-on cannot be written in bash, can this task be performed by a separate bash script?


I suspect that this isn't an unusual idea and that I can find such a script/add-on. However, I need a first project.

I've played with the command line; I'm comfortable running programs from a terminal and modifying the file system from the terminal. (I appreciate the GUI now.) And, by the end of this coming week, I'll be comfortable compiling. I've also written lots of html for a couple simple websites if that matters.

Help me, please.

User avatar
stu91
Posts: 145
Joined: Mon 06 Aug 2012, 15:11
Location: England. Dpup. Dell Inspiron 1501

#2 Post by stu91 »

No idea about browser add-ons but maybe these scripts will be a good place to start with regards to downloading multi-page threads.
ThreadGet: http://www.murga-linux.com/puppy/viewtopic.php?t=62236
ThreadSaver: http://www.murga-linux.com/puppy/viewtopic.php?t=74404

circularL7
Posts: 112
Joined: Sat 02 Feb 2013, 07:26

#3 Post by circularL7 »

Thanks, Stu; those look interesting.

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#4 Post by sunburnt »

Hi circularL7; There are web site downloaders, but I don`t know of any specific ones.

Here`s a Bash tutorial: http://tldp.org/LDP/abs/html/

It`s a multi-page setup, a good test bed for any code you write.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#5 Post by don570 »

To install the bash manual quickly I have made a pet package

http://www.murga-linux.com/puppy/viewtopic.php?t=80501

_____________________________________________________

circularL7
Posts: 112
Joined: Sat 02 Feb 2013, 07:26

#6 Post by circularL7 »

Very nice. Thank you.

Post Reply