Update README.md

This commit is contained in:
Akash
2020-07-19 14:45:13 +05:30
committed by GitHub
parent 11059c960e
commit 15e5622451

View File

@@ -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)
``` ```