Python library to browse the Gopherspace
Features:
- Light
- Easy to use
- Comes without dependencies
- Install Gophient:
pip install gophient
- Create a
gophient.Gopher
instance and make requests (see examples below)
import gophient
client = gophient.Gopher()
weather = client.request('gopher.floodgap.com', 'groundhog/ws')
print(weather)
import gophient
client = gophient.Gopher()
results = client.request('gopher.floodgap.com', 'v2/vs', query='plan 9')
print(results)
import gophient
client = gophient.Gopher()
apk = client.request('gopher.floodgap.com', 'overbite/files/OverbiteAndroid025.apk')
with open('app.apk', 'wb') as apk_file:
apk_file.write(apk)