<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://ideawaza.com/index.php?action=history&amp;feed=atom&amp;title=Pywikipediabot%2FGeneral_basics%2FInvoking_Python</id>
	<title>Pywikipediabot/General basics/Invoking Python - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://ideawaza.com/index.php?action=history&amp;feed=atom&amp;title=Pywikipediabot%2FGeneral_basics%2FInvoking_Python"/>
	<link rel="alternate" type="text/html" href="https://ideawaza.com/index.php?title=Pywikipediabot/General_basics/Invoking_Python&amp;action=history"/>
	<updated>2026-09-30T02:22:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://ideawaza.com/index.php?title=Pywikipediabot/General_basics/Invoking_Python&amp;diff=42330&amp;oldid=prev</id>
		<title>wikademia&gt;Eme: moved Archive:Pywikipediabot/General basics/Invoking Python to Pywikipediabot/General basics/Invoking Python over redirect</title>
		<link rel="alternate" type="text/html" href="https://ideawaza.com/index.php?title=Pywikipediabot/General_basics/Invoking_Python&amp;diff=42330&amp;oldid=prev"/>
		<updated>2009-11-08T17:07:04Z</updated>

		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/wiki/Archive:Pywikipediabot/General_basics/Invoking_Python&quot; class=&quot;mw-redirect&quot; title=&quot;Archive:Pywikipediabot/General basics/Invoking Python&quot;&gt;Archive:Pywikipediabot/General basics/Invoking Python&lt;/a&gt; to &lt;a href=&quot;/wiki/Pywikipediabot/General_basics/Invoking_Python&quot; title=&quot;Pywikipediabot/General basics/Invoking Python&quot;&gt;Pywikipediabot/General basics/Invoking Python&lt;/a&gt; over redirect&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:07, 8 November 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>wikademia&gt;Eme</name></author>
	</entry>
	<entry>
		<id>https://ideawaza.com/index.php?title=Pywikipediabot/General_basics/Invoking_Python&amp;diff=42329&amp;oldid=prev</id>
		<title>wikademia&gt;Wikademia: moved Pywikipediabot/General basics/Invoking Python to Archive:Pywikipediabot/General basics/Invoking Python</title>
		<link rel="alternate" type="text/html" href="https://ideawaza.com/index.php?title=Pywikipediabot/General_basics/Invoking_Python&amp;diff=42329&amp;oldid=prev"/>
		<updated>2009-06-12T16:06:26Z</updated>

		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/wiki/Pywikipediabot/General_basics/Invoking_Python&quot; title=&quot;Pywikipediabot/General basics/Invoking Python&quot;&gt;Pywikipediabot/General basics/Invoking Python&lt;/a&gt; to &lt;a href=&quot;/wiki/Archive:Pywikipediabot/General_basics/Invoking_Python&quot; class=&quot;mw-redirect&quot; title=&quot;Archive:Pywikipediabot/General basics/Invoking Python&quot;&gt;Archive:Pywikipediabot/General basics/Invoking Python&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:06, 12 June 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>wikademia&gt;Wikademia</name></author>
	</entry>
	<entry>
		<id>https://ideawaza.com/index.php?title=Pywikipediabot/General_basics/Invoking_Python&amp;diff=42328&amp;oldid=prev</id>
		<title>wikademia&gt;Wikademia: 2 revisions</title>
		<link rel="alternate" type="text/html" href="https://ideawaza.com/index.php?title=Pywikipediabot/General_basics/Invoking_Python&amp;diff=42328&amp;oldid=prev"/>
		<updated>2009-04-18T18:17:07Z</updated>

		<summary type="html">&lt;p&gt;2 revisions&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:17, 18 April 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>wikademia&gt;Wikademia</name></author>
	</entry>
	<entry>
		<id>https://ideawaza.com/index.php?title=Pywikipediabot/General_basics/Invoking_Python&amp;diff=42327&amp;oldid=prev</id>
		<title>wikademia&gt;Millosh: Pywikipediabot/Invoking Python moved to Pywikipediabot/General basics/Invoking Python</title>
		<link rel="alternate" type="text/html" href="https://ideawaza.com/index.php?title=Pywikipediabot/General_basics/Invoking_Python&amp;diff=42327&amp;oldid=prev"/>
		<updated>2007-12-23T19:49:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;/index.php?title=Pywikipediabot/Invoking_Python&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Pywikipediabot/Invoking Python (page does not exist)&quot;&gt;Pywikipediabot/Invoking Python&lt;/a&gt; moved to &lt;a href=&quot;/wiki/Pywikipediabot/General_basics/Invoking_Python&quot; title=&quot;Pywikipediabot/General basics/Invoking Python&quot;&gt;Pywikipediabot/General basics/Invoking Python&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:49, 23 December 2007&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>wikademia&gt;Millosh</name></author>
	</entry>
	<entry>
		<id>https://ideawaza.com/index.php?title=Pywikipediabot/General_basics/Invoking_Python&amp;diff=42326&amp;oldid=prev</id>
		<title>wikademia&gt;Millosh: New page: Your bot should assume that it is multilingual. Because of that, use UTF-8 (or some better character set) and declare it at the beginning of your Python script:  &lt;source lang=&quot;...</title>
		<link rel="alternate" type="text/html" href="https://ideawaza.com/index.php?title=Pywikipediabot/General_basics/Invoking_Python&amp;diff=42326&amp;oldid=prev"/>
		<updated>2007-12-23T19:36:17Z</updated>

		<summary type="html">&lt;p&gt;New page: Your bot should assume that it is multilingual. Because of that, use &lt;a href=&quot;/index.php?title=W:UTF-8&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;W:UTF-8 (page does not exist)&quot;&gt;UTF-8&lt;/a&gt; (or some better character set) and declare it at the beginning of your Python script:  &amp;lt;source lang=&amp;quot;...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Your bot should assume that it is multilingual. Because of that, use [[w:UTF-8|UTF-8]] (or some better character set) and declare it at the beginning of your Python script:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
#!/usr/bin/python&lt;br /&gt;
# -*- coding: utf-8 -*-&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, we will use Python interpreter for examples, invoked by simple typing &amp;quot;python&amp;quot;. Interpreter doesn&amp;#039;t require first two lines, but scripts written into a file have to have the first line and should have the second line.&lt;br /&gt;
&lt;br /&gt;
If you are writing examples into the file and you want to execute it, you should choose one of two approaches:&lt;br /&gt;
&lt;br /&gt;
* You may give to your file executable mode (you need to do that only once!):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
$ chmod +x mybot.py&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
...  after which you would be able to execute your script directly:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
$ ./mybot.py&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Or you may invoke scripts by typing &amp;quot;python&amp;quot; before them:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
$ python mybot.py&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pywikipediabot]]&lt;br /&gt;
[[Category:Python]]&lt;br /&gt;
[[Category:MediaWiki]]&lt;br /&gt;
[[Category:Computer programming]]&lt;/div&gt;</summary>
		<author><name>wikademia&gt;Millosh</name></author>
	</entry>
</feed>