I watch computer based on-line tutorials via a site that uses ASP that allows downloading of their content. When I login and I look at the cookie, I can see that is uses a "AspSessionIdCopy" and a value"
"325434f6-57b2-4b65-8374-blahblahblah"
When I am looking at each video of the course that I am watching I can see that the link is the same with only the number incrementing such as:
So what I would like to do, is just download the videos using a "for" loop and watch them locally on my laptop at my leisure. Once I know the sequence of numbers of the series, I would proceed in downloading the content. This is my method I will use:
My question is that I can see that I will have to use authentication on order to be able to do this from the cli and thats the part that I cannot figure out. What is the correct syntax using wget with authentication:
or
adding to cookies.txt:
and download the context that I want. Will this work.
You will have to check the cookies and see what you need for it. You may also want to consider using the '--wait=' and the '--random-wait' options in case they monitor behavior and may suspect you are a bot.
Hi All,
I'm trying to write while loop with multiple if conditions. Each and every if condition with different variables. whenever one if condition fails i have remove the file
from filename and have to pick another file and loop should exit until the last file found in filename. Please help... (4 Replies)
Hi,
I want to read file multiple times. Right now i am using while loop but that is not working.
ex.
While read line
do
while read line2
do
echo stmt1
#processing some data based on data.,
done < file2.txt
done < file1.txt # This will have 10... (4 Replies)
Hey all,
I'm trying to do some very basic scripting. I been scouring the board looking at examples but I just can't seem to piece something together.
Edit: Now that I look at it, maybe my request is a little more complex and I'm biting off more than I can chew...
1. Take a list of... (3 Replies)
I am in the process of updating a folder of hundreds of recipe html files. I've already managed to modify a number of things in each file but I have run into something that's beyond my ability.
I have a text file that I need to insert the contents into the html at a specific point. It creates... (0 Replies)
Hi,
How can I avoid multiple 'cat while read ....? in my script.
In my script, I am taking the inputs from the temp text file and doing the
(
cat while read input
do
...
...
done
)
task and deleting later.
I know it'll raise the perfomance issue. How to avoid this? (2 Replies)
Hi
I have these data
0.9>i>0.1
0.45>j>0.01
I want to execute the script file for different number of i and j using the command
$ ./scriptfile i j
I write this code
#bin/bash
for ((i>0.1; i<0.9; i++))
for ((j>0.01; j<0.45; j++))
do
./scriptfile $i $j
done
However, for loop is not... (3 Replies)
Hi was wonderring about the syntax for the following peice of code:
while ] ; do
This is apparently incorrect. I want the loop to continue WHILE $life is not equal to zero or $mask is not equal to $word. Should ONE of these conditions fail to be met, loop should break out. Any ideas? ... (8 Replies)
Hi ,
I am trying to write a script in kshell with while loop ,its like
count=1
count_cmp=1
while ; do
tail -$count tempfile | head -1 > tempstring
.......
done
However i get CIF.sh: line 33: '
I have checked thetrailing spaces , not sure what is... (4 Replies)