<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.extremist.software/index.php?action=history&amp;feed=atom&amp;title=BART</id>
	<title>BART - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.extremist.software/index.php?action=history&amp;feed=atom&amp;title=BART"/>
	<link rel="alternate" type="text/html" href="https://wiki.extremist.software/index.php?title=BART&amp;action=history"/>
	<updated>2026-04-05T00:16:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.13</generator>
	<entry>
		<id>https://wiki.extremist.software/index.php?title=BART&amp;diff=68521&amp;oldid=prev</id>
		<title>Ⅹ: count</title>
		<link rel="alternate" type="text/html" href="https://wiki.extremist.software/index.php?title=BART&amp;diff=68521&amp;oldid=prev"/>
		<updated>2018-11-24T22:14:37Z</updated>

		<summary type="html">&lt;p&gt;count&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== counting trains ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import requests&lt;br /&gt;
&lt;br /&gt;
url = &amp;quot;http://api.bart.gov/api/bsa.aspx?cmd=count&amp;amp;key=MW9S-E7SL-26DU-VV8V&amp;amp;json=y&amp;quot;&lt;br /&gt;
&lt;br /&gt;
def query():&lt;br /&gt;
        r = requests.get(url)&lt;br /&gt;
        print(&amp;quot;Train API Status:&amp;quot;, r.status_code)&lt;br /&gt;
&lt;br /&gt;
        data = r.json()&lt;br /&gt;
&lt;br /&gt;
        t = data.get(&amp;#039;root&amp;#039;).get(&amp;#039;time&amp;#039;)&lt;br /&gt;
        c = data.get(&amp;#039;root&amp;#039;).get(&amp;#039;traincount&amp;#039;)&lt;br /&gt;
        message = data.get(&amp;#039;root&amp;#039;).get(&amp;#039;message&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
        if message == &amp;#039;&amp;#039;:&lt;br /&gt;
                message = &amp;quot;No message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
        print(t, c, message)&lt;br /&gt;
&lt;br /&gt;
        return (t, c)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ⅹ</name></author>
	</entry>
</feed>