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 Mon 01 Sep 2014, 20:59
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Pwget
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 3 [36 Posts]   Goto page: 1, 2, 3 Next
Author Message
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Sat 19 Jan 2008, 04:37    Post subject:  Pwget
Subject description: Downloader - Lobster powered
 


Pwget is a simple GUI front end to the wget utility.
Wget is used for reliably downloading larger files from the internet such as ISOs.
The files are verified during the download procedure.
As ISO and other files are checked and downloads resumed,
they do not require a md5sum check.
Cut and paste the source file you wish to download.
Use the file selector to choose the destination


use right click on pwget to activate icon and drag on to desktop

to paste in URL location (Linux method - learn it!) Very Happy
highlight with mouse and middle button click in address

Development details
With thanks to Mark Ulrich and other developers
http://www.murga-linux.com/puppy/viewtopic.php?t=25183http://

Basically this is a replacement/update for Ian's front end
which was written in tkl (No longer in Dingo)
Dingo has a downloader based on gcurl (very similar in operation)

Has been tested on 2.17 and Dingo Alpha
It should work on any Puppy with GTK3 (aprox Puppy 2.12 Puplets and above)

_________________
Puppy WIKI

Last edited by Lobster on Mon 21 Jan 2008, 15:17; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
cb88


Joined: 28 Jan 2007
Posts: 1169
Location: USA

PostPosted: Sun 20 Jan 2008, 00:08    Post subject:  

hey lobster i think you grabed that link from you newest post page and it doesn't work!

here is the correct link to pwget's development :

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

_________________
Taking Puppy Linux to the limit of perfection. meanwhile try "puppy pfix=duct_tape" kernel parem eater.
X86: Sager NP6110 3630QM 16GB ram, Tyan Thunder 2 2x 300Mhz
Sun: SS2 , LX , SS5 , SS10 , SS20 ,Ultra 1, Ultra 10 , T2000
Mac: Platinum Plus, SE/30
Back to top
View user's profile Send private message Visit poster's website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Mon 21 Jan 2008, 15:18    Post subject:  

Thanks cb88 Smile

have modified the link Smile

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
rerwin


Joined: 24 Aug 2005
Posts: 1513
Location: Maine, USA

PostPosted: Sun 27 Jan 2008, 14:42    Post subject: Please correct terminology before going public
Subject description: "Cut-&-paste" implies deleting the highlighted text. Don't you mean "copy-&-paste".
 

Lobster,
It may come across as nit-picky, but "copy-and-paste" is what you seem to intend; so please make Pwget use the appropriate term. "Cut-&-paste" is alarming, if one doesn't want to risk changing the source of the URL text.

This is a common misuse of "cut and paste", so I would not like to see it propagated in a Puppy dialog. Thanks for listening.
Richard
Back to top
View user's profile Send private message 
Eyes-Only


Joined: 10 Aug 2006
Posts: 1046
Location: La Confederation Abenaquaise

PostPosted: Sun 27 Jan 2008, 19:48    Post subject:  

Hi Lobster!

I was just going down through the menus here in 3.0.1 to see whether we had anything similar to that and we do, named "Xweget". So out of curiosity to see what the GUI looked like I started it up. UGH! I have to admit that I've never used these before, always being lazy and just clicking on the file in my browser. Wink

Yet there have been so many times I'd have loved to have closed the browser and just walk off. Thanks for opening my eyes to another way to download where I can do just that.

And for the GUI behind yours? Nicer than Xweget's by far mate! Thanks for sharing! Very Happy

Amicalement,

Eyes-Only
"L'Peau-Rouge"

_________________
*~*~*~*~*~*
Proud user of LXpup and 3-Headed Dog. Cool
*~*~*~*~*~*
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Mon 28 Jan 2008, 01:05    Post subject:  

Cool Thanks for the feedback guys.
Barry has included the code in Dingo (Puppy 4)

I used the command line code from Ian's Xweget
Without tkl (which is not included with Dingo)
all that was required was a front end and some
copy + paste from Ian's code

There is incidentally a command line program called wput
(not in Dingo but potentially very useful for developers)
that uploads in a similar way . . .

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
Ian
Official Dog Handler


Joined: 04 May 2005
Posts: 1237
Location: Queensland

PostPosted: Tue 29 Jan 2008, 03:53    Post subject:  

Lobster

I didn't realize you were doing this as I could have saved myself time & effort.
I've attached a later version of what I am working on, it has a Resume function but is not perfect yet, you might find it of interest.

Eyes-Only has mentioned Xweget in3.0.1 I think he means Xwget.
I didn't think the GUI was that bad considering it was created with tcl/TK.

He may like to have a look at Xwget-6 and see if I have improved.
Xwget-6EXP.tar.gz
Description 
gz

 Download 
Filename  Xwget-6EXP.tar.gz 
Filesize  2.97 KB 
Downloaded  1164 Time(s) 
Back to top
View user's profile Send private message 
Py

Joined: 12 Aug 2005
Posts: 70

PostPosted: Wed 16 Jul 2008, 01:59    Post subject: Re: Pwget
Subject description: Downloader - Lobster powered
 

Lobster wrote:

PWget is used for reliably downloading larger files from the internet such as ISOs.
The files are verified during the download procedure.
As ISO and other files are checked and downloads resumed,
they do not require a md5sum check.


Am I to understand that by using this on my 56k dialup and http or ftp, I do not have to do any checking of md5's? Sounds great.
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Wed 16 Jul 2008, 02:36    Post subject:  

Thanks Ian,

Yes Py - you are correct . . .
No only that, if your line breaks down during download
Set up again with the same parameters and location
and it will start off with inclusion of your previous download
- so you do not have to start from scratch

Never have to use md5sum unless downloading from browser . . .

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
HairyWill


Joined: 26 May 2006
Posts: 2949
Location: Southampton, UK

PostPosted: Wed 16 Jul 2008, 02:48    Post subject:  

Lobster,
I think you might have this wrong.
How does pwget know what the md5 of the file is?

_________________
Will
contribute: community website, screenshots, puplets, wiki, rss
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Wed 16 Jul 2008, 07:44    Post subject:  

HairyWill wrote:
How does pwget know what the md5 of the file is?


I don't think it uses md5sum which verifies that the file the programmer created, is the file you downloaded.
What it does do (from memory) is ensure the file that is downloaded is not corrupted or lost through line cut outs - partial downloads are still 'credited' and not corrupted.

So for tin-hats and the securely paranoid you could do a md5sum check too . . . Smile

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Wed 11 Feb 2009, 06:22    Post subject:  

The following code which I found in a recent unrelated thread
would add the facility to download a whole website

Code:
# wget -r --convert-links -P/your/save/directory/
http://www.example.com/


I started working on the code
(you can find the original in user/local/pwget)
but really need help to get it working . . .
watch out for the test1 variable which I have no idea how to set and make use of
Help required Wink

Code:
#! /bin/bash

# Pwget created by Lobster with thanks to Zigbert
# for Puppy Dingo and Linux Tmxxine
# Feb 2009 GPL v5 License
# http://tmxxine.com
# wget -r --convert-links -P/your/save/directory/ http://www.example.com/

export Pwget='
<window title="Pwget - File downloader utility">
<vbox>
 <hbox>
  <text><label>Copy and Paste URL location of required file into "Address". Add destination and click "OK"</label></text>
 </hbox>
 <hbox>
  <text><label>Address</label></text>
  <entry accept="directory"><variable>SOURCE</variable><input>/tmp/pm_source_dir</input></entry>
 </hbox>
  <hbox>
  <text><label>Download Website</label></text>
  <entry accept="directory"><variable>SOURCE</variable><input>/tmp/pm_source_dir</input></entry>
 </hbox>
 <hbox>
  <text><label>Destination Dir</label></text>
  <entry accept="directory"><variable>DEST</variable><input>/tmp/pm_mirror_dir</input></entry>
  <button>
   <input file icon="gtk-open"></input>
   <action type="fileselect">DEST</action>
   <action>refresh:DEST</action>
  </button>
 </hbox>
 <hbox>
  <button help>
   <action>`Xdialog --wrap --screencenter --left --title "Pwget - HELP" --msgbox "Pwget is a simple front end to the wget utility. Wget is used for downloading larger files from the internet such as ISOs. The files are verified during the download procedure. As ISO and other files are checked and downloads resumed, they do not require a md5sum check. Copy and paste the source file you wish to download. Use the file selector to choose the destination. \n\n Lobster, Jan 2008" 600x0`</action>
  </button>
  <button cancel></button>
  <text><label>Download</label></text>
  <button ok></button>
 </hbox>
</vbox>
</window>'

I=$IFS; IFS=""
for STATEMENTS in $(gtkdialog3 --program=Pwget --center); do
   eval $STATEMENTS
done
IFS=$I
if [ $EXIT = OK ]; then
  rxvt -name Xwget -bg "#F3F2DF" -e wget -c -P "$DEST" $SOURCE ,
  else if [ test=1 ]; then
      nrxvt -name Xwget -bg "#F3F2DF" -e wget -r --convert-links -P "$DEST" $SOURCE ,
  rox -d "$DEST"
fi

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
aragon

Joined: 15 Oct 2007
Posts: 1698
Location: Germany

PostPosted: Thu 26 Feb 2009, 06:46    Post subject:  

hi lobster,

try the following one. i've tested it, works for me, but please test a little more.

Code:
#! /bin/bash

# Pwget created by Lobster with thanks to Zigbert
# for Puppy Dingo and Linux Tmxxine
# Jan 2008 GPL v3 License
# http://tmxxine.com

cd /root

export Pwget='
<window title="Pwget - File downloader utility">
<vbox>
 <hbox>
  <text><label>Copy and Paste URL location of required file into "Address". Add destination and click "OK"</label></text>
 </hbox>
 <hbox>
  <text><label>Address</label></text>
  <entry accept="directory"><variable>SOURCE</variable><input>/tmp/pm_source_dir</input></entry>
 </hbox>
 <checkbox>
 <label>Download Website</label>
 <variable>WEBSITE</variable>
 </checkbox>
 <hbox>
  <text><label>Destination Dir</label></text>
  <entry accept="directory"><variable>DEST</variable><input>/tmp/pm_mirror_dir</input></entry>
  <button>
   <input file icon="gtk-open"></input>
   <action type="fileselect">DEST</action>
   <action>refresh:DEST</action>
  </button>
 </hbox>
 <hbox>
  <button help>
   <action>`Xdialog --wrap --screencenter --left --title "Pwget - HELP" --msgbox "Pwget is a simple front end to the wget utility. Wget is used for downloading larger files from the internet such as ISOs. The files are verified during the download procedure. As ISO and other files are checked and downloads resumed, they do not require a md5sum check. Copy and paste the source file you wish to download. Use the file selector to choose the destination. \n\n Lobster, Jan 2008" 600x0`</action>
  </button>
  <button cancel></button>
  <text><label>Download</label></text>
  <button ok></button>
 </hbox>
</vbox>
</window>'

I=$IFS; IFS=""
for STATEMENTS in  $(gtkdialog3 --program=Pwget --center); do
   eval $STATEMENTS
done
IFS=$I
if [ $EXIT = OK ]
 then
  if [ $WEBSITE = true ]
  then
  rxvt -name pwget -bg "#FAEBD7" -fg "#000000" -e wget -r --convert-links -P "$DEST" $SOURCE
  rox -d "$DEST"
  else
  rxvt -name pwget -bg "#FAEBD7" -fg "#000000" -e wget -c -P "$DEST" $SOURCE
  rox -d "$DEST"
  fi
fi



aragon
pwget2.png
 Description   
 Filesize   13 KB
 Viewed   2082 Time(s)

pwget2.png


_________________
PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Fri 27 Feb 2009, 00:55    Post subject:  

Thanks aragon

Have made changes to the help file and included your mods

Rename the enclosed file to pwget
and place in user/local/Pwget
pwget.zip
Description 
zip

 Download 
Filename  pwget.zip 
Filesize  2 KB 
Downloaded  1020 Time(s) 

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
dejan555


Joined: 30 Nov 2008
Posts: 2648
Location: Montenegro

PostPosted: Fri 27 Feb 2009, 02:37    Post subject:  

Yaaay! That's great guys, that was my example. Smile
I don't have to do it from terminal anymore. Smile Wait... actually I do, but it's still great! U see I never download the whole website, for example, if I want only pictures from some location or webpage, I do this:
Code:
wget -r -l1 --no-parent -A.jpg -P/your/save/directory/
http://www.example.com/images/


There are lots of wget command line options, see here and here.

_________________


Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
Display posts from previous:   Sort by:   
Page 1 of 3 [36 Posts]   Goto page: 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1038s ][ Queries: 13 (0.0050s) ][ GZIP on ]