init

swadhingithub committed 2 years ago
af94b86
1 parent 9a08764
commit af94b86
1 file changed
+134 -0
Showing 1 changed file+134-0
▼README.md
+134-0
1
+
2
+# About Project
3
+
4
+## Locate and Identify Website Visitors by IP Address
5
+
6
+Ipstack Offers One of the Leading IP to Geolocation APIs and Global IP Database Services Worldwide.
7
+This Project help you to use all the ipstack - a real-time geolocation API service using python in your CLI,Bot,Etc.
8
+
9
+# API service
10
+
11
+## Location Module
12
+
13
+Use ipstack's extensive set of localization data to implement geographic restrictions on your site, optimize ad targeting or deliver user experiences customized based on the location of your website visitors
14
+
15
+
16
+## Currency Module
17
+
18
+Get instant and accurate information about the primary currency used in the location returned for the processed IP address and deliver a tailored shopping experience to your customers.
19
+
20
+
21
+## Time Zone Module
22
+
23
+Find out about the time zone your users are located in without the need for them to fill out any forms, and act accordingly based on the time-related metadata returned by the ipstack API
24
+
25
+
26
+## Connection Module
27
+
28
+Make use of valuable information about the ASN and the hostname of the ISP your website visitors are using.
29
+
30
+
31
+## Security Module
32
+
33
+Protect your site and web application and always be a step ahead of potential threats to your business by detecting proxies, crawlers or tor users at first glance.
34
+## Authors
35
+
36
+- [@swadhinbiswas](https://www.github.com/swadhinbiswas)
37
+
38
+
39
+
40
+
41
+## API Reference
42
+
43
+#### simple use
44
+```
45
+ipstack=IpStack(ipaddress,apikey)
46
+
47
+```
48
+#### all function
49
+```
50
+get_Apicall()
51
+#for get call
52
+
53
+getlocation()
54
+# Get only Location Of IPAddress using IpStack
55
+
56
+hostname_looku()
57
+#for enable Description of DNS
58
+
59
+api_xmlformat()
60
+#Get data in XML format
61
+
62
+callby_function(function)
63
+#make api call using Custom Function
64
+
65
+enable_security_apicall()
66
+#enable security when call API
67
+
68
+callby_fields(Parameter)
69
+#call api using Parameter
70
+
71
+
72
+
73
+
74
+```
75
+| Parameter | Type | Description |
76
+| :-------- | :------- | :------------------------- |
77
+| `api_key` | `string` | **Required**. Your API key |
78
+| :-------- | :------- | :------------------------- |
79
+| `ipaddress` | `string` | **Required**. Your IpAddress |
80
+| `url` | `string` | **Required**. Your url|
81
+
82
+#### Get item
83
+
84
+
85
+
86
+| Parameter | Type | Description |
87
+| :-------- | :------- | :-------------------------------- |
88
+| `id` | `string` | **Required**. Id of item to fetch |
89
+
90
+
91
+
92
+
93
+Request Parameters:
94
+
95
+| Parameter | Type | Description |
96
+| :-------- | :------- | :------------------------- |
97
+| `api_key` | `string` | **Required**. Your API key |
98
+| :-------- | :------- | :------------------------- |
99
+| `ipaddress` | `string` | **Required**. Your IpAddress |
100
+| `url` | `string` | **Required**. Your url|
101
+| `hostname` | `string` | [optional] Set to 1 to enable Hostname Lookup.|
102
+
103
+
104
+# Specify Response Language
105
+``en - English/US``
106
+
107
+``de - German``
108
+
109
+``es - Spanish``
110
+
111
+``fr - French``
112
+
113
+``ja - Japanese``
114
+
115
+``pt-br - Portugues (Brazil)``
116
+
117
+``ru - Russian``
118
+
119
+``zh - Chinese``
120
+
121
+
122
+# JSONP Callbacks
123
+
124
+```
125
+ def callby_function(self,function):
126
+ urlx=f"{self.url}&callback={function}&json"
127
+ txt=requests.get(urlx).text
128
+ import json
129
+ # api=json.loads(txt)
130
+ return txt
131
+
132
+```
133
+### creat Function
134
+#### example
0
135