Topic:   Simple Online RPG   (Read 9745 times)


0 Members and 1 Guest are viewing this topic.

GMG Tim


  • Administrator

  • GMG-er

  • *****


  • Posts: 465
Re: Simple Online RPG
« Reply #30 on: August 09, 2008, 07:42:00 PM »
If you use Python, you'll wanna use MySQLdb to access your DB, and urlllib to retrieve data from your PHP pages...

http://sourceforge.net/projects/mysql-python

An example of urllib:

import urllib
data = urllib.urlopen("http://www.yahoo.com/").read()
print data (or if you don't wanna do .read() in the data variable line, you can print data.read())

That would print the source for yahoo.com...

Ghost
« Last Edit: August 09, 2008, 07:43:08 PM by admin »

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: Simple Online RPG
« Reply #31 on: August 09, 2008, 08:08:02 PM »
We are going to use applescript to get the data off the site. Though, the only problem I see is making the data base and making the php page to display it and record it.


-Gandolf