Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 25 Oct 2014, 23:57
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Is there a good scripting tutorial for beginners?
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
circularL7

Joined: 02 Feb 2013
Posts: 112

PostPosted: Sun 28 Apr 2013, 01:57    Post_subject:  Is there a good scripting tutorial for beginners?  

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.
Back to top
View user's profile Send_private_message 
stu91


Joined: 06 Aug 2012
Posts: 145
Location: England. Dpup. Dell Inspiron 1501

PostPosted: Sun 28 Apr 2013, 09:19    Post_subject:  

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
Back to top
View user's profile Send_private_message 
circularL7

Joined: 02 Feb 2013
Posts: 112

PostPosted: Sun 28 Apr 2013, 10:14    Post_subject:  

Thanks, Stu; those look interesting.
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Sun 28 Apr 2013, 13:52    Post_subject:  

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.
Back to top
View user's profile Send_private_message 
don570


Joined: 10 Mar 2010
Posts: 3347
Location: Ontario

PostPosted: Mon 29 Apr 2013, 18:12    Post_subject:  

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

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

_____________________________________________________
Back to top
View user's profile Send_private_message 
circularL7

Joined: 02 Feb 2013
Posts: 112

PostPosted: Wed 01 May 2013, 16:55    Post_subject:  

Very nice. Thank you.
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0534s ][ Queries: 11 (0.0066s) ][ GZIP on ]