<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Pywebkitgtk &#8211; execute Javascript from python</title>
	<atom:link href="http://blog.motane.lu/2009/06/18/pywebkitgtk-execute-javascript-from-python/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.motane.lu/2009/06/18/pywebkitgtk-execute-javascript-from-python/</link>
	<description>Ramblings about software development</description>
	<lastBuildDate>Thu, 02 Feb 2012 17:38:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Tudor</title>
		<link>http://blog.motane.lu/2009/06/18/pywebkitgtk-execute-javascript-from-python/comment-page-1/#comment-2959</link>
		<dc:creator>Tudor</dc:creator>
		<pubDate>Tue, 10 Jan 2012 11:48:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.motane.lu/?p=821#comment-2959</guid>
		<description>Sourabh Singi&gt; Can you please give more details on what distribution you are using?</description>
		<content:encoded><![CDATA[<p>Sourabh Singi> Can you please give more details on what distribution you are using?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tudor</title>
		<link>http://blog.motane.lu/2009/06/18/pywebkitgtk-execute-javascript-from-python/comment-page-1/#comment-2958</link>
		<dc:creator>Tudor</dc:creator>
		<pubDate>Tue, 10 Jan 2012 11:45:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.motane.lu/?p=821#comment-2958</guid>
		<description>There&#039;s a problem with the indentation when you pasted the code. Just re-indent everything using either tabs either spaces, no combinations of the two.</description>
		<content:encoded><![CDATA[<p>There&#8217;s a problem with the indentation when you pasted the code. Just re-indent everything using either tabs either spaces, no combinations of the two.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ignacio</title>
		<link>http://blog.motane.lu/2009/06/18/pywebkitgtk-execute-javascript-from-python/comment-page-1/#comment-2870</link>
		<dc:creator>Ignacio</dc:creator>
		<pubDate>Mon, 09 Jan 2012 23:29:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.motane.lu/?p=821#comment-2870</guid>
		<description>hi.
I have copy and paste your code, but
I don&#039;t know why:
[sourcecode language=&quot;python&quot;]
&gt;&gt;&gt; def crawl(self):
  File &quot;&quot;, line 1
    def crawl(self):
    ^
IndentationError: unexpected indent
&gt;&gt;&gt; view = WebView()
  File &quot;&quot;, line 1
    view = WebView()
    ^
IndentationError: unexpected indent
&gt;&gt;&gt; view.open(self._url)
  File &quot;&quot;, line 1
    view.open(self._url)
    ^
IndentationError: unexpected indent
...
[/sourcecode]</description>
		<content:encoded><![CDATA[<p>hi.<br />
I have copy and paste your code, but<br />
I don&#8217;t know why:</p>
<pre class="brush: python; title: ; notranslate">
&gt;&gt;&gt; def crawl(self):
  File &quot;&quot;, line 1
    def crawl(self):
    ^
IndentationError: unexpected indent
&gt;&gt;&gt; view = WebView()
  File &quot;&quot;, line 1
    view = WebView()
    ^
IndentationError: unexpected indent
&gt;&gt;&gt; view.open(self._url)
  File &quot;&quot;, line 1
    view.open(self._url)
    ^
IndentationError: unexpected indent
...
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sourabh Singi</title>
		<link>http://blog.motane.lu/2009/06/18/pywebkitgtk-execute-javascript-from-python/comment-page-1/#comment-2835</link>
		<dc:creator>Sourabh Singi</dc:creator>
		<pubDate>Wed, 04 Jan 2012 06:40:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.motane.lu/?p=821#comment-2835</guid>
		<description>I have a problem installing the python-webkitgtk, I googled for the solution, but cudnt find much help.

[sourcecode lang=&quot;plain&quot;]
$ sudo apt-get install python-webkitgtk libwebkit-1.0-1 libwebkit-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Couldn&#039;t find package python-webkitgtk
[/sourcecode]

Anyone who have faced the same problem and solved it?</description>
		<content:encoded><![CDATA[<p>I have a problem installing the python-webkitgtk, I googled for the solution, but cudnt find much help.</p>
<pre class="brush: plain; title: ; notranslate">
$ sudo apt-get install python-webkitgtk libwebkit-1.0-1 libwebkit-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package python-webkitgtk
</pre>
<p>Anyone who have faced the same problem and solved it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Passerby</title>
		<link>http://blog.motane.lu/2009/06/18/pywebkitgtk-execute-javascript-from-python/comment-page-1/#comment-2570</link>
		<dc:creator>Passerby</dc:creator>
		<pubDate>Fri, 29 Jul 2011 13:02:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.motane.lu/?p=821#comment-2570</guid>
		<description>Hi,

Using selenium can be a solution as well</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Using selenium can be a solution as well</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sérgio Basto</title>
		<link>http://blog.motane.lu/2009/06/18/pywebkitgtk-execute-javascript-from-python/comment-page-1/#comment-2322</link>
		<dc:creator>Sérgio Basto</dc:creator>
		<pubDate>Mon, 16 May 2011 18:11:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.motane.lu/?p=821#comment-2322</guid>
		<description>replace
gtk.gdk.threads_init()
to 
import gobject 
gobject.threads_init()

works even better :)</description>
		<content:encoded><![CDATA[<p>replace<br />
gtk.gdk.threads_init()<br />
to<br />
import gobject<br />
gobject.threads_init()</p>
<p>works even better <img src='http://blog.motane.lu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ajijor</title>
		<link>http://blog.motane.lu/2009/06/18/pywebkitgtk-execute-javascript-from-python/comment-page-1/#comment-2165</link>
		<dc:creator>Ajijor</dc:creator>
		<pubDate>Tue, 22 Mar 2011 12:11:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.motane.lu/?p=821#comment-2165</guid>
		<description>Thanks ! 
This is wicked.

Interestingly, I get an exception for the import of threads.
I am on Ubuntu10.10 with Python 2.6.6.
I removed the import and stuff seems to be working ....</description>
		<content:encoded><![CDATA[<p>Thanks !<br />
This is wicked.</p>
<p>Interestingly, I get an exception for the import of threads.<br />
I am on Ubuntu10.10 with Python 2.6.6.<br />
I removed the import and stuff seems to be working &#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://blog.motane.lu/2009/06/18/pywebkitgtk-execute-javascript-from-python/comment-page-1/#comment-1743</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Wed, 05 Jan 2011 04:57:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.motane.lu/?p=821#comment-1743</guid>
		<description>It&#039;d be great if anyone could write a Scrapy extension for this.</description>
		<content:encoded><![CDATA[<p>It&#8217;d be great if anyone could write a Scrapy extension for this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ryan</title>
		<link>http://blog.motane.lu/2009/06/18/pywebkitgtk-execute-javascript-from-python/comment-page-1/#comment-1425</link>
		<dc:creator>ryan</dc:creator>
		<pubDate>Mon, 19 Jul 2010 08:32:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.motane.lu/?p=821#comment-1425</guid>
		<description>it seems the code &#039;s execution has nothing to do with python-webkitgtk, as I had not install it, but the code above can and do the work correctly~~</description>
		<content:encoded><![CDATA[<p>it seems the code &#8216;s execution has nothing to do with python-webkitgtk, as I had not install it, but the code above can and do the work correctly~~</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BrochesterL</title>
		<link>http://blog.motane.lu/2009/06/18/pywebkitgtk-execute-javascript-from-python/comment-page-1/#comment-1303</link>
		<dc:creator>BrochesterL</dc:creator>
		<pubDate>Sun, 02 May 2010 20:38:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.motane.lu/?p=821#comment-1303</guid>
		<description>Definitely Use the main_resource from the main frame as you will see in the python api for webkit it is what holds on to the bulk from all the ajax type stuff running, only problem is I havent been able to render javascript and &quot;dump&quot; (as it were), an entire page from this api, It needs some rethinking to be a true crawler.
 but here is what is required to view your gmail inbox in pywebkitgtk,
if you run the pywebkit browser demo
[code lang=&quot;python&quot;]
 &gt;&gt;&gt; webkit.browser.get_children()[0].get_children()[1].get_children()[TabNumber].get_children()[0].get_main_frame().get_data_source().get_data()
[/code]
when in your gmail inbox will dump all your mail from lists in javascript source
Now If I could Just get the links extracted so I can navigate and recursively download my mail. Only because current provider blocks all SMTP.!!!</description>
		<content:encoded><![CDATA[<p>Definitely Use the main_resource from the main frame as you will see in the python api for webkit it is what holds on to the bulk from all the ajax type stuff running, only problem is I havent been able to render javascript and &#8220;dump&#8221; (as it were), an entire page from this api, It needs some rethinking to be a true crawler.<br />
 but here is what is required to view your gmail inbox in pywebkitgtk,<br />
if you run the pywebkit browser demo</p>
<pre class="brush: python; title: ; notranslate">
 &gt;&gt;&gt; webkit.browser.get_children()[0].get_children()[1].get_children()[TabNumber].get_children()[0].get_main_frame().get_data_source().get_data()
</pre>
<p>when in your gmail inbox will dump all your mail from lists in javascript source<br />
Now If I could Just get the links extracted so I can navigate and recursively download my mail. Only because current provider blocks all SMTP.!!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

