Giter Club home page Giter Club logo

EsARsv's Projects

13 icon 13

class IpGeoLocation: """Represents an IP Geolocation information object""" def __init__(self, query, jsonData = None): self.Query = query self.ASN = '-' self.City = '-' self.Country = '-' self.CountryCode = '-' self.ISP = '-' self.Latitude = 0.0 self.Longtitude = 0.0 self.Organization = '-' self.IP = '0.0.0.0' self.Region = '-' self.RegionName = '-' self.Status = '-' self.Timezone = '-' self.Zip = '-' self.GoogleMapsLink = '' if jsonData != None: if type(jsonData) is dict: if 'as' in jsonData: self.ASN = jsonData['as'] if 'city' in jsonData: self.City = jsonData['city'] if 'country' in jsonData: self.Country = jsonData['country'] if 'countryCode' in jsonData: self.CountryCode = jsonData['countryCode'] if 'isp' in jsonData: self.ISP = jsonData['isp'] if 'lat' in jsonData: self.Latitude = jsonData['lat'] if 'lon' in jsonData: self.Longtitude = jsonData['lon'] if 'org' in jsonData: self.Organization = jsonData['org'] if 'query' in jsonData: self.IP = jsonData['query'] if 'region' in jsonData: self.Region = jsonData['region'] if 'regionName' in jsonData: self.RegionName = jsonData['regionName'] if 'status' in jsonData: self.Status = jsonData['status'] if 'timezone' in jsonData: self.Timezone = jsonData['timezone'] if 'zip' in jsonData: self.Zip = jsonData['zip'] if type(self.Latitude) == float and type(self.Longtitude) == float: self.GoogleMapsLink = 'http://www.google.com/maps/place/{0},{1}/@{0},{1},16z'.format(self.Latitude, self.Longtitude) def ToDict(self): #self.__dict__. return {'Target':self.Query, 'IP':self.IP, 'ASN':self.ASN, 'City':self.City, 'Country':self.Country, 'Country Code':self.CountryCode, 'ISP':self.ISP, 'Latitude':str(self.Latitude), 'Longtitude':str(self.Longtitude), 'Organization':self.Organization, 'Region':self.Region, 'Region Name':self.RegionName, 'Timezone':self.Timezone, 'Zip':self.Zip, 'Google Maps':self.GoogleMapsLink

aelf icon aelf

A scalable cloud computing blockchain platform

airsim icon airsim

Open source simulator for autonomous vehicles built on Unreal Engine / Unity, from Microsoft AI & Research

angular-notifications icon angular-notifications

An AngularJS component for easily creating notifications. Can also use HTML5 notifications.

apple icon apple

Trend plots and time-series decompositions of quarterly sales data for various Apple products.

arabic-letter-connector icon arabic-letter-connector

A tool to replace generic disconnected Arabic letters with their connected counterparts, for the Ruby programming language.

atom icon atom

Calculates atomic energy for Gaussian basis set

atom-1 icon atom-1

Duke Energy's Public site workflow

atom-language-energyplus icon atom-language-energyplus

Atom language support for EnergyPlus including syntax highlighting and snippets for object autocompletion

atomic_coordinates-energy_nnps icon atomic_coordinates-energy_nnps

A repo for the code developed for extracting atomic coordinates and energies to train atomic NNs and neural network potentials.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.