metalx1000

123movie search

May 5th, 2017
602
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.18 KB | None | 0 0
  1. #!/bin/bash
  2. q="$1"
  3. tmp=/tmp/123movies.tmp
  4. cookie="cookie: __cfduid=d0d51e448719a2a63af2a3bb2d11c5ecb1490488836; gogoanime=i95kmtnq72500afnjnrta995d5; __atssc=google%3B1; __test; __atuvc=7%7C14%2C5%7C15%2C0%7C16%2C0%7C17%2C4%7C18; __atuvs=590cb4282204c3ea000; _ga=GA1.2.247199771.1490488838; _gid=GA1.2.1287305608.1494004778; _gat=1; subscribe=1"
  5. enc="accept-encoding: gzip, deflate, sdch, br"
  6. req='x-requested-with: XMLHttpRequest'
  7. lang='accept-language: en-US,en;q=0.8'
  8. agent='user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36'
  9. app='accept: application/json, text/javascript, */*; q=0.01'
  10.  
  11. curl -s "https://123movieshd.tv/ajax/suggest_search?keyword=$q" -H "$enc" -H "$req" -H "$lang" -H "$agent" -H "$app" -H 'referer: https://123movieshd.tv/' -H 'authority: 123movieshd.tv' -H "$cookie" --compressed|\
  12.   sed 's/</\n</g'|\
  13.   grep href|\
  14.   grep -v url|\
  15.   cut -d\" -f2|\
  16.   sed 's/\\\//\//g'|\
  17.   cut -d\\ -f1|\
  18.   while read l;
  19.   do
  20.     echo "https://123movieshd.tv${l}/watching.html?ep=1";
  21.   done > "$tmp"
  22.  
  23. cat "$tmp"
  24. cat "$tmp"|while read l;
  25.   do
  26.     curl -s "$l" -H 'accept-encoding: gzip, deflate, sdch, br' -H 'x-requested-with: XMLHttpRequest' -H 'accept-language: en-US,en;q=0.8' -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36' -H 'accept: application/json, text/javascript, */*; q=0.01' -H 'referer: https://123movieshd.tv/' -H 'authority: 123movieshd.tv' -H 'cookie: __cfduid=d0d51e448719a2a63af2a3bb2d11c5ecb1490488836; gogoanime=i95kmtnq72500afnjnrta995d5; __atssc=google%3B1; __test; __atuvc=7%7C14%2C5%7C15%2C0%7C16%2C0%7C17%2C4%7C18; __atuvs=590cb4282204c3ea000; _ga=GA1.2.247199771.1490488838; _gid=GA1.2.1287305608.1494004778; _gat=1; subscribe=1' --compressed
  27. done|grep 'id-data'|grep 'title'|cut -d\" -f2,8|sort -u|
  28.     while read line;
  29.     do
  30.       #echo "++++++++++++++++++$line++++++++++++++"
  31.       title="$(echo $line|cut -d\" -f1)"
  32.       echo "========$title======"  
  33.       id="$(echo $line|cut -d\" -f2)"  
  34.       wget -q "https://embed.123movieshd.tv/embedjw.php?id=$id" -O-|\
  35.         grep googlev|\
  36.         cut -d\' -f2
  37.     done
Add Comment
Please, Sign In to add comment