Client library for the Gopherspace
Project description
Gophient
Gophient is client library for the Gopherspace. It doesn't require any dependencies and is easy to use.
Features:
- Browse the Gopherspace
- Follow links
- Download content
Examples
Get weather from Floodgap
import gophient
client = gophient.Gopher()
weather = client.request('gopher.floodgap.com', 'groundhog/ws')
print(weather)
Search by Veronica
import gophient
client = gophient.Gopher()
results = client.request('gopher.floodgap.com', 'v2/vs', query='plan 9')
print(results)
Download files
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)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gophient-1.1.1.tar.gz
(5.7 kB
view hashes)