/G-Web-Access

Framework for the new grindr v4 API

Primary LanguagePythonMIT LicenseMIT

Build Status

GRINDR WEB ACCESS

Grindr web access is a framework for the new grindr v4 api Just scan the qrcode using your grindr app

Installation

For easy installation using pip3 goto: https://github.com/Slenderman00/Pip-Grindr-Web-Access

Usage

# import the api
import api

#api full login
tokens = api.fullLogin()
print(api.getProfileId(tokens[0]))

#on message
def onmessage(message, profileid, _type):

    #type: text, image, tap

    #do stuff with message
    print(_type + " " + message)

#open socket
socket = api.messageSocket(tokens, onmessage)
socket.start()

Usage 2

#fetch your own userid
api.getProfileId(tokens[0])

#send message
socket.message("<Userid>", "<Message body>")

#send tap
socket.tap("<Userid>", "<tapType>")
#tap type = 0, 1, 2
#0 = Friendly
#1 = Hot
#2 = Looking

#fetch array of all users
#                  authtoken    lat         long        parameters
api.fetchProfiles(tokens[0], 40.785091, -73.968285) # myType='false', online='false', faceOnly='false', photoOnly='false', notRecentlyChatted='false'

Todo

  • add search filters

Dependencies

  • requests==2.23.0
  • asyncio==3.4.3
  • pyqrcode==1.2.1
  • websocket_client==0.57.0
  • xmltodict==0.12.0
  • pygeohash==1.2.0

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT