You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-10Lines changed: 9 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,6 @@ You can look up the calling IP address, that is, the IP address of the computer
45
45
You can look up any valid IPv4 or IPv6 address by passing it to the `lookup` method.
46
46
47
47
```python
48
-
>>>from rich import pprint
49
48
>>>import ipdata
50
49
>>> ipdata.api_key ="<YOUR API KEY>"
51
50
>>> response = ipdata.lookup('69.78.70.144')
@@ -343,7 +342,7 @@ pip install ipdata
343
342
### Available commands
344
343
345
344
```shell
346
-
➜ ipdata --help
345
+
ipdata --help
347
346
Usage: ipdata [OPTIONS] COMMAND [ARGS]...
348
347
349
348
Welcome to the ipdata CLI
@@ -366,7 +365,7 @@ Commands:
366
365
You need a valid API key from ipdata to use the cli. You can get a free key by [Signing up here](https://ipdata.co/sign-up.html).
367
366
368
367
```shell
369
-
➜ ipdata init <API Key>
368
+
ipdata init <API Key>
370
369
_ _ _
371
370
(_)_ __ __| | __ _| |_ __ _
372
371
| | '_ \ / _`|/ _`| __/ _`|
@@ -385,7 +384,7 @@ Running the `ipdata` command without any parameters will look up the IP address
385
384
386
385
387
386
```shell
388
-
➜ ipdata
387
+
ipdata
389
388
```
390
389
391
390
To pretty print the result pass the `-p` flag
@@ -429,15 +428,15 @@ To pretty print the result pass the `-p` flag
429
428
You can pass any valid IPv4 or IPv6 address to the `ipdata`command to look it up. In case an invalid value is passed you will get the error `ERROR 'BLEH' does not appear to be an IPv4 or IPv6 address"`.
430
429
431
430
```shell
432
-
➜ ipdata 8.8.8.8
431
+
ipdata 8.8.8.8
433
432
```
434
433
435
434
### Copying results to clipboard
436
435
437
436
Use `-c` to copy the results to the clipboard!
438
437
439
438
```
440
-
➜ ipdata 1.1.1.1 -f ip -f asn -c
439
+
ipdata 1.1.1.1 -f ip -f asn -c
441
440
📋️ Copied result to clipboard!
442
441
```
443
442
@@ -446,13 +445,13 @@ Use `-c` to copy the results to the clipboard!
446
445
Use `--fields` to filter the responses
447
446
448
447
```shell
449
-
➜ ipdata --fields city --fields country_name'
448
+
ipdata --fields city --fields country_name'
450
449
```
451
450
452
451
or use `-f`
453
452
454
453
```shell
455
-
➜ ipdata 1.1.1.1 -f ip -f asn
454
+
ipdata 1.1.1.1 -f ip -f asn
456
455
```
457
456
458
457
```json
@@ -517,13 +516,13 @@ The validation closely follows https://datatracker.ietf.org/doc/html/draft-googl
517
516
You can provide either a url or a path to a local file.
0 commit comments