From 4fefe187cdaa76c65c306de7da587a3089e0639f Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Wed, 10 May 2017 03:43:26 +0100 Subject: [PATCH] Correct title working. --- wrp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wrp.py b/wrp.py index 355b7c8..71a4c41 100755 --- a/wrp.py +++ b/wrp.py @@ -240,8 +240,8 @@ if sys.platform == "linux" or sys.platform == "linux2": % (__version__)) httpout.write("\n" % (WebkitRenderer.req_url, web_url)) - httpout.write("") # Get title + httpout.write("") for ttl in frame.findAllElements('title'): httpout.write((u"%s" % ttl.toPlainText()).encode('utf-8', errors='ignore')) @@ -541,6 +541,7 @@ elif sys.platform == "darwin": httpout.write("\n" % (WebkitLoad.req_url, web_url)) # Get title + httpout.write("") for ttl in frame.findAllElements('title'): httpout.write((u"%s" % ttl.toPlainText()).encode('utf-8', errors='ignore'))