Subdomain Posts
Python | 13 days ago
C# | 18 days ago
C# | 19 days ago
C# | 20 days ago
C# | 20 days ago
C | 164 days ago
Python | 167 days ago
C++ | 188 days ago
PHP | 252 days ago
Python | 299 days ago
Recent Posts
C++ | 26 sec ago
None | 27 sec ago
None | 33 sec ago
C | 38 sec ago
None | 1 min ago
None | 1 min ago
None | 1 min ago
None | 2 min ago
C | 3 min ago
None | 3 min ago
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
By IceDragon on the 14th of Apr 2009 06:14:02 PM
Download |
Raw |
Embed |
Report
#!/usr/bin/python
###--# Imports #--###
import urllib
from time import time
###--# Configuration #--###
names = [
"artex",
"cpu",
"dreamgrabber"
]
# Forming URL
url = "http://on.furcadia.com/q/?%d&%s" % ( int(time()), "&".join(names) )
# Sending request and retrieving data
data = urllib.urlopen(url).read()
# Parsing data
for line in data.split("\n"):
if line == "":
continue
if line[0] == "+":
print "%s is online" % line[1:]
elif line[0] == "O":
print "%4s furres online\n" % line[1:]
elif line[0] == "T":
print "T parameter: " + line[1:]
else:
print "UNIDENTIFIED: " + line
Submit a correction or amendment below.
Make A New Post