How to download forum attachment from CLI? [Solved]

Puppy related raves and general interest that doesn't fit anywhere else
Post Reply
Message
Author
User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

How to download forum attachment from CLI? [Solved]

#1 Post by mavrothal »

Anybody knows a tool/command (wget, curl etc) or a script that can download a forum attachment?
Not the whole forum page or a specific thread or a specific post.
Just a specific attachment.
The attachments that you get from this kind of links
"http://murga-linux.com/puppy/viewtopic. ... &id=123456"
Last edited by mavrothal on Fri 02 Jan 2015, 12:49, edited 1 time in total.
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#2 Post by Bert »

Hi mavrothal,

For me this works:

Code: Select all

 wget -O pwget-spanish.tar.gz http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=79719
So in this solution you have to know the actual name of the attached file, in the example "pwget-spanish.tar.gz"
Maybe that is not what you are looking for. But it works :wink:
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#3 Post by SFR »

Dunno if it's also possible with wget, but cURL can get the actual filename:

Code: Select all

curl -O -J "http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=79719"
Btw, perhaps this might help as well.

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#4 Post by LazY Puppy »

LazY MAID!

LazY Puppy Murga Linux Attachment Index Downloader
http://murga-linux.com/puppy/viewtopic. ... 94&t=80768
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#5 Post by mavrothal »

Thank you all.
wget and curl should suffice.
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

Post Reply