Re: [Bug-wget] ot: clicking email links advice

2017-01-05 Thread Tim Rühsen
On Donnerstag, 5. Januar 2017 09:34:39 CET Ander Juaristi wrote: > Hi, > > On 28/12/16 05:57, voy...@sbt.net.au wrote: > > is there a way to run wget with that url and, tell it to 'press' one of > > the buttons? > > Not directly as you describe. Wget does not submit web forms. > > You would

Re: [Bug-wget] ot: clicking email links advice

2017-01-05 Thread Ander Juaristi
Hi, On 28/12/16 05:57, voy...@sbt.net.au wrote: > > is there a way to run wget with that url and, tell it to 'press' one of > the buttons? Not directly as you describe. Wget does not submit web forms. You would need to write an external application to parse the HTML, generate the target link

Re: [Bug-wget] ot: clicking email links advice

2017-01-04 Thread Dale R. Worley
voy...@sbt.net.au writes: > is there a way to run wget with that url and, tell it to 'press' one of > the buttons? Basically, yes, since an HTML "submit" operation causes an HTTP request to be sent. What you need to learn is the details of the correct HTTP request, and then figure out how to

Re: [Bug-wget] ot: clicking email links advice

2014-01-02 Thread Darshit Shah
On Thu, Jan 2, 2014 at 1:20 PM, voy...@sbt.net.au wrote: I ocassionally get html emails containg clickable links as so: http://xxx.domtld.com/portal?id=a059007JM3UAAW001999KlOrcAAF140102111731729key=b024bb39c058d395037a907b7b6436e0resp=1 I'd like to try to parse the email for the

Re: [Bug-wget] ot: clicking email links advice

2014-01-02 Thread voytek
On Thu, January 2, 2014 7:05 pm, Darshit Shah wrote: Darshit, thanks but, it seems to return differnt page contents than I get in a browser A sample would be nice for debugging. But most probably the problem is quoting. You need to quote your URL between single quotes so that the shell

Re: [Bug-wget] ot: clicking email links advice

2014-01-02 Thread voytek
On Thu, January 2, 2014 8:01 pm, Tim Ruehsen wrote: But you can use the tool 'munpack' from the package 'mpack' to split RFC-822 emails into single parts and then process the HTML part(s) with wget. Example: 1. Save your email as xxx.mbox 2. Extract the contents $ munpack -t xxx.mbox

Re: [Bug-wget] ot: clicking email links advice

2014-01-02 Thread voytek
On Thu, January 2, 2014 8:24 pm, voy...@sbt.net.au wrote: On Thu, January 2, 2014 8:01 pm, Tim Ruehsen wrote: But you can use the tool 'munpack' from the package 'mpack' to split RFC-822 emails into single parts and then process the HTML part(s) with wget. Example: 1. Save your email as

Re: [Bug-wget] ot: clicking email links advice

2014-01-02 Thread Tim Ruehsen
On Thursday 02 January 2014 13:35:02 Darshit Shah wrote: On Thu, Jan 2, 2014 at 1:20 PM, voy...@sbt.net.au wrote: I ocassionally get html emails containg clickable links as so: http://xxx.domtld.cmime email parserom/portal?id=a059007JM3UAAW001999KlOrcAAF140102

Re: [Bug-wget] ot: clicking email links advice

2014-01-02 Thread Tim Ruehsen
On Thursday 02 January 2014 20:28:08 voy...@sbt.net.au wrote: On Thu, January 2, 2014 8:24 pm, voy...@sbt.net.au wrote: On Thu, January 2, 2014 8:01 pm, Tim Ruehsen wrote: But you can use the tool 'munpack' from the package 'mpack' to split RFC-822 emails into single parts and then

Re: [Bug-wget] ot: clicking email links advice

2014-01-02 Thread voytek
On Thu, January 2, 2014 9:08 pm, Tim Ruehsen wrote: just need to stop other 2...? Well, maybe you could misuse --quota. The docs say, it will never affect downloading a single file (I guess the first file in your case). So a --quota=1 should do it. Tim, thanks again, it does the trick

Re: [Bug-wget] ot: clicking email links advice

2014-01-02 Thread Ángel González
On 02/01/14 09:57, voy...@sbt.net.au wrote: the links have a time limit, so my testing might not be 100%, as, now, browser shows same what I get from wget with '' when I grep the html email (rather than lifting link from email client), links include '' as'amp;' I guess single quotes around

Re: [Bug-wget] ot: clicking email links advice

2014-01-02 Thread voytek
On Fri, January 3, 2014 9:14 am, Ángel González wrote: No, if passing the url you would need to perform the unescaping of html entities yourself (which is usually restricted to a replacement of amp; to , but there could be other, less common entities included in the url). (Just for