Exemplo n.º 1
0
	def logOut(self):
		print "logging out..."
		if self.isLoggedIn():
			call = ExternalApiThreader(
				url="%s%s" % (wigle_conf['base_url'], wigle_conf['logout_url'])
			)
			call.start()
			call.join()
		
			os.remove(wigle_conf['cookie_jar'])
Exemplo n.º 2
0
	def queryByBSSID(self, bssid):
		call = ExternalApiThreader(
			url = "%s%s" % (wigle_conf['base_url'], wigle_conf['query_url']),
			data = {
				'netid':bssid,
				'Query':'Query'
			},
			post = True,
			send_cookie = "auth=%s" % self.cookie
		)
		call.start()
		call.join()
		
		return self.soupScrape(call.output, ['latitude','longitude'])
Exemplo n.º 3
0
	def logIn(self):
		print "logging in..."
		login_data = {
			'credential_0' : wigle_conf['username'],
			'credential_1' : wigle_conf['password']
		}
		call = ExternalApiThreader(
			url="%s%s" % (wigle_conf['base_url'], wigle_conf['login_url']), 
			data=login_data, 
			post=True,
			cookiejar=wigle_conf['cookie_jar']
		)
		call.start()
		call.join()