Skip to content

Commit 4fb9bfc

Browse files
update readme
1 parent ce6ef79 commit 4fb9bfc

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ You can look up the calling IP address, that is, the IP address of the computer
4545
You can look up any valid IPv4 or IPv6 address by passing it to the `lookup` method.
4646

4747
```python
48-
>>> from rich import pprint
4948
>>> import ipdata
5049
>>> ipdata.api_key = "<YOUR API KEY>"
5150
>>> response = ipdata.lookup('69.78.70.144')
@@ -343,7 +342,7 @@ pip install ipdata
343342
### Available commands
344343

345344
```shell
346-
ipdata --help
345+
ipdata --help
347346
Usage: ipdata [OPTIONS] COMMAND [ARGS]...
348347

349348
Welcome to the ipdata CLI
@@ -366,7 +365,7 @@ Commands:
366365
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).
367366
368367
```shell
369-
ipdata init <API Key>
368+
ipdata init <API Key>
370369
_ _ _
371370
(_)_ __ __| | __ _| |_ __ _
372371
| | '_ \ / _` |/ _` | __/ _` |
@@ -385,7 +384,7 @@ Running the `ipdata` command without any parameters will look up the IP address
385384
386385
387386
```shell
388-
ipdata
387+
ipdata
389388
```
390389
391390
To pretty print the result pass the `-p` flag
@@ -429,15 +428,15 @@ To pretty print the result pass the `-p` flag
429428
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"`.
430429
431430
```shell
432-
ipdata 8.8.8.8
431+
ipdata 8.8.8.8
433432
```
434433
435434
### Copying results to clipboard
436435
437436
Use `-c` to copy the results to the clipboard!
438437
439438
```
440-
ipdata 1.1.1.1 -f ip -f asn -c
439+
ipdata 1.1.1.1 -f ip -f asn -c
441440
📋️ Copied result to clipboard!
442441
```
443442
@@ -446,13 +445,13 @@ Use `-c` to copy the results to the clipboard!
446445
Use `--fields` to filter the responses
447446
448447
```shell
449-
ipdata --fields city --fields country_name'
448+
ipdata --fields city --fields country_name'
450449
```
451450
452451
or use `-f`
453452
454453
```shell
455-
ipdata 1.1.1.1 -f ip -f asn
454+
ipdata 1.1.1.1 -f ip -f asn
456455
```
457456
458457
```json
@@ -517,13 +516,13 @@ The validation closely follows https://datatracker.ietf.org/doc/html/draft-googl
517516
You can provide either a url or a path to a local file.
518517
519518
```shell
520-
ipdata validate https://example.com/geofeed.txt
519+
ipdata validate https://example.com/geofeed.txt
521520
```
522521
523522
or
524523
525524
```shell
526-
ipdata validate geofeed.txt
525+
ipdata validate geofeed.txt
527526
```
528527
529528
## Errors

0 commit comments

Comments
 (0)