Update README.md
This commit is contained in:
@@ -57,7 +57,7 @@ pip install waybackpy
|
|||||||
```python
|
```python
|
||||||
import waybackpy
|
import waybackpy
|
||||||
# Capturing a new archive on Wayback machine.
|
# Capturing a new archive on Wayback machine.
|
||||||
target_url = waybackpy.Url("https://github.com/akamhy/waybackpy", user_agnet="My-cool-user-agent")
|
target_url = waybackpy.Url("https://github.com/akamhy/waybackpy", user_agent="My-cool-user-agent")
|
||||||
archived_url = target_url.save()
|
archived_url = target_url.save()
|
||||||
print(archived_url)
|
print(archived_url)
|
||||||
```
|
```
|
||||||
@@ -83,7 +83,7 @@ This should print the oldest available archive for <https://google.com>.
|
|||||||
```python
|
```python
|
||||||
import waybackpy
|
import waybackpy
|
||||||
# retrieving the newest/latest archive on Wayback machine.
|
# retrieving the newest/latest archive on Wayback machine.
|
||||||
target_url = waybackpy.Url(url="https://www.google.com/", user_agnet="My-cool-user-agent")
|
target_url = waybackpy.Url(url="https://www.google.com/", user_agent="My-cool-user-agent")
|
||||||
newest_archive = target_url.newest()
|
newest_archive = target_url.newest()
|
||||||
print(newest_archive)
|
print(newest_archive)
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user