--- /dev/null
+[submodule "webkit2png"]
+ path = webkit2png
+ url = https://github.com/adamn/python-webkit2png
Place this script somewhere and setup a cronjob like this:
`*/5 * * * * /var/sites/cache/httruta/httracker &> /dev/null`
+
+Features
+--------
+
+- Integration with http://wkhtmltopdf.org
+- Integration with [webkit2png](http://www.paulhammond.org/webkit2png/).
- OPML support to retrieve URLs from multiple feeds.
- Support for other fetchers like youtube-dl and quvi.
- Cleanup content no longer pointed in scuttle database.
-- Integration with http://wkhtmltopdf.org
-- Integration with [webkit2png](http://www.paulhammond.org/webkit2png/).
+- Scuttler:
+ - Support to generate only an index of all URLs.
+ - Support to retrieve posts using the API.
DEPTH="1"
EXT_DEPTH="0"
SCUTTLE_BASE="/var/sites/links"
+WEBKIT2PNG="1"
+WKHTMLTOPDF="1"
source `dirname $0`/lib/httracker/functions || exit 1
# Parameters
+DIRNAME="`dirname $0`"
BASENAME="`basename $0`"
FILE="$1"
rm -rf $TARGET
fi
+ # Get a screenshot
+ if [ "$WEBKIT2PNG" == "1" ]; then
+ $DIRNAME/webkit2png/webkit2png/webkit2png.py -o $TARGET/screenshot.png "$url"
+ fi
+
+ # Build a PDF
+ if [ "$WKHTMLTOPDF" == "1" ] && which wkhtmltopdf &> /dev/null; then
+ wkhtmltopdf "$url" $TARGET/screenshot.pdf
+ fi
+
# Fix permissions again
if [ "`whoami`" != "$USER" ] && [ "`whoami`" == "root" ]; then
echo "Fixing $TARGET permissions..."
# Load and initialize
source `dirname $0`/lib/httracker/functions || exit 1
+# Parameters
+DIRNAME="`dirname $0`"
+BASENAME="`basename $0`"
+
# Other parameters
SCUTTLEDIR="`basename $( find ${SCUTTLE_BASE} -maxdepth 1 -iname "SemanticScuttle-*" | head -n 1 )`"
CONFIGFILE="${SCUTTLE_BASE}/${SCUTTLEDIR}/data/config.php"
--- /dev/null
+Subproject commit 4a82a81cb0fd95faac721792951bd15ea82a11b9