Addind Web(index.html) & Page(pdf) copy
This commit is contained in:
parent
1845e377dd
commit
9840c45a59
|
@ -188,10 +188,19 @@ rm -Rf ${YTEMP}
|
||||||
|
|
||||||
zenity --warning --width 600 --text 'DEVELOPPEMENT . ZONE . Please Participate https://git.p2p.legal'
|
zenity --warning --width 600 --text 'DEVELOPPEMENT . ZONE . Please Participate https://git.p2p.legal'
|
||||||
|
|
||||||
## httrack all web site
|
## wget current URL -> index.html ## TEST ## TEST httrack ??
|
||||||
[[ ! $(which httrack) ]] && zenity --warning --width ${large} --text "Utilitaire de copie de site web absent.. Lancez la commande 'sudo apt install httrack'" && exit 1
|
[[ ! $(which httrack) ]] && zenity --warning --width ${large} --text "Utilitaire de copie de site web absent.. Lancez la commande 'sudo apt install httrack'" && exit 1
|
||||||
echo "httrack --mirror $URL"
|
echo "httrack --mirror $URL"
|
||||||
exit 0
|
FILE_NAME="index.html"
|
||||||
|
REVSOURCE="$(echo "$URL" | rev | sha256sum | cut -d ' ' -f 1)_"; echo $REVSOURCE # URL="https://discuss.ipfs.io/t/limit-ipfs-get-command/3573/6"
|
||||||
|
MEDIAID="$REVSOURCE" # MEDIAID=1252ff59950395070a0cc56bb058cbb1ccfd2f8d8a32476acaf472f62b14d97d_
|
||||||
|
MEDIAKEY="PAGE_${MEDIAID}" # MEDIAKEY=PAGE_1252ff59950395070a0cc56bb058cbb1ccfd2f8d8a32476acaf472f62b14d97d_
|
||||||
|
FILE_PATH="$HOME/astroport/web/$MEDIAID";
|
||||||
|
mkdir -p $FILE_PATH
|
||||||
|
wget -mpck --user-agent="" -e robots=off --wait 1 "$URL" > ${FILE_PATH}/${FILE_NAME}
|
||||||
|
|
||||||
|
echo "web;${MEDIAID};${YEAR};${TITLE};${SAISON};${GENRES};_IPNSKEY_;${RES};/ipfs/_IPFSREPFILEID_/$FILE_NAME" > ~/astroport/${CAT}/${MEDIAID}/ajouter_video.txt
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
||||||
|
@ -201,7 +210,7 @@ rm -Rf ${YTEMP}
|
||||||
|
|
||||||
zenity --warning --width 600 --text 'DEVELOPPEMENT . ZONE . Please Participate https://git.p2p.legal'
|
zenity --warning --width 600 --text 'DEVELOPPEMENT . ZONE . Please Participate https://git.p2p.legal'
|
||||||
|
|
||||||
## record one page only
|
## record one page to PDF
|
||||||
[[ ! $(which chromium) ]] && zenity --warning --width ${large} --text "Utilitaire de copie de page web absent.. Lancez la commande 'sudo apt install chromium'" && exit 1
|
[[ ! $(which chromium) ]] && zenity --warning --width ${large} --text "Utilitaire de copie de page web absent.. Lancez la commande 'sudo apt install chromium'" && exit 1
|
||||||
cd /tmp/ && rm output.pdf && chromium --headless --no-sandbox --print-to-pdf $URL
|
cd /tmp/ && rm output.pdf && chromium --headless --no-sandbox --print-to-pdf $URL
|
||||||
|
|
||||||
|
@ -211,7 +220,7 @@ rm -Rf ${YTEMP}
|
||||||
|
|
||||||
MEDIAID="$REVSOURCE$(echo "${TITLE}" | detox --inline)"
|
MEDIAID="$REVSOURCE$(echo "${TITLE}" | detox --inline)"
|
||||||
MEDIAKEY="PAGE_${MEDIAID}"
|
MEDIAKEY="PAGE_${MEDIAID}"
|
||||||
FILE_PATH="$HOME/astroport/youtube/$MEDIAID"
|
FILE_PATH="$HOME/astroport/page/$MEDIAID"
|
||||||
mkdir -p ${FILE_PATH} && mv -f output.pdf ${FILE_PATH}/${FILE_NAME}
|
mkdir -p ${FILE_PATH} && mv -f output.pdf ${FILE_PATH}/${FILE_NAME}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue