/ Published in: Bash
get links from linkList file, that contain links like: http://maktabkhooneh.org/course?course=sharif-riazi2, then get all of course link on that page and save link of related video on that :D
Result is 'list' file that can interpreted with my another script :D
Expand |
Embed | Plain Text
for link in $(cat linkList) do curl $link > temp grep -o -e 'video?v=[A-Za-z0-9-]\{1,30\}-[0-9]\{1,5\}' temp > tempList echo $link >> list echo "===== $link ======" echo "==============================================" >> list for i in $(cat tempList) do echo "****** $i ******" curl "http://maktabkhooneh.org/$i" > temp grep -o -e 'http://takhtesefid.org/videos/[0-9]\{1,20\}.mp4?name=[A-Za-z0-9-]\{1,30\}-[0-9]\{1,5\}' temp >> list done echo "==============================================" >> list done
You need to login to post a comment.
